You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+40-19Lines changed: 40 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,10 @@
4
4
5
5
This repository provides formatter settings for the [coding style rules](https://trivadis.github.io/plsql-and-sql-coding-guidelines/v4.0/3-coding-style/coding-style/#rules) of the Trivadis PL/SQL & SQL Coding Guidelines.
6
6
7
-
Settings are provided for
7
+
Settings are primarily provided for
8
8
9
9
-[Oracle SQLcl, Version 21.1.0](https://www.oracle.com/tools/downloads/sqlcl-downloads.html)
10
10
-[Oracle SQL Developer, Version 20.4.1](https://www.oracle.com/database/technologies/appdev/sql-developer.html)
11
-
-[Allround Automations PL/SQL Developer, Version 14.0.5](https://www.allroundautomations.com/products/pl-sql-developer/)
12
11
13
12
These settings have been defined and tested with the product versions mentioned above. They might not work in other versions.
14
13
@@ -18,7 +17,9 @@ See [releases](https://github.com/Trivadis/plsql-formatter-settings/releases) fo
18
17
19
18
## Deviating Settings
20
19
21
-
Please note that these settings do not comply with rule 5. Line breaks are placed after a comma and not before. All other rules are followed. However, you can easily change this in the settings for both products.
20
+
Please note that these settings do not comply with rule 5. Line breaks are placed after a comma and not before. All other rules are followed. However, you can easily change this in the preferences.
21
+
22
+

22
23
23
24
## Installation
24
25
@@ -32,6 +33,30 @@ See [sqlcl/README.md](sqlcl/README.md).
32
33
33
34
### SQL Developer
34
35
36
+
#### Configure `dbtools.arbori.home`
37
+
38
+
1. Start SQL Developer
39
+
2. Open `Help` -> `About`
40
+
3. Select `Properties` tab
41
+
4. Type `user.conf` in the search box and press enter
5. Select the row with `user.conf` and press `Ctrl-C` to copy it into your clipboard
44
+
6. Press `OK` to close the dialog
45
+
7. Select `File` -> `Open...`
46
+
8. Press `Ctrl-V` to paste the content of the clipboard into the `File Name` field
47
+
9. Remove `user.conf` and the double quotes from the file name
48
+

49
+
10. Press `Open`
50
+
11. Add `AddVMOption -Ddbtools.arbori.home=/.../plsql-formatter-settings/settings/sql_developer` at the end of the file
51
+
12. Replace `/.../` to match the directory of the [`trivadis_custom_format.arbori`](settings/sql_developer/trivadis_custom_format.arbori) file on your system
52
+

53
+
13. Press the `Save` button in the toolbar
54
+
14. Restart SQL Developer to apply this JVM configuration change
55
+
15. Optionally check if `dbtools.arbori.home` is configured correctly
9. Select a permanent location for these settings and press `Save`
61
-
10. Press `Close`
62
-
11. Select the rule file you've saved previoulsy.
63
-
12. Press `OK`
64
-
65
74
## Arbori
66
75
67
76
SQL Developer uses its own parse tree query language called Arbori for its advanced formatter configuration. Here is some additional information that might be useful if you plan to tweak the behavior of the formatter yourself.
[Quest Toad for Oracle](https://www.quest.com/products/toad-for-oracle/) | 14.1 | [trivadis_fmtplus.opt](settings/toad/trivadis_fmtplus.opt)
113
+
114
+
Please refer to the vendor's documentation for instructions on how to import these settings.
115
+
95
116
## Issues
96
117
Please file your bug reports, enhancement requests, questions and other support requests within [Github's issue tracker](https://help.github.com/articles/about-issues/).
0 commit comments