Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Commit 0d26c82

Browse files
authored
Merge pull request #171 from evandrocoan/format_settings
Formatted the SQLTools.sublime-settings
2 parents 6fd92ee + 7671446 commit 0d26c82

File tree

1 file changed

+64
-21
lines changed

1 file changed

+64
-21
lines changed

SQLTools.sublime-settings

Lines changed: 64 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,38 @@
1717
"firebird": "isql",
1818
"sqsh" : "sqsh"
1919
},
20-
"expand_to_paragraph" : false, // use paragraph (text between newlines), if selection is empty
21-
"show_result_on_window" : false, // puts results either in output pannel or new window
22-
"clear_output" : true, // clears the output of prev. query
23-
"thread_timeout" : 15, // query timeout in seconds
24-
"use_streams" : false, // stream the output line by line
25-
"history_size" : 100, // number of queries to save in the history
20+
21+
// use paragraph (text between newlines), if selection is empty
22+
"expand_to_paragraph" : false,
23+
24+
// puts results either in output panel or new window
25+
"show_result_on_window" : false,
26+
27+
// clears the output of prev. query
28+
"clear_output" : true,
29+
30+
// query timeout in seconds
31+
"thread_timeout" : 15,
32+
33+
// stream the output line by line
34+
"use_streams" : false,
35+
36+
// number of queries to save in the history
37+
"history_size" : 100,
38+
39+
// unless false, appends LIMIT clause to SELECT statements (not compatible with all DB's)
40+
"safe_limit": false,
41+
42+
"unescape_quotes" : [
43+
"php"
44+
],
45+
2646
"show_records": {
2747
"limit": 50
2848
},
49+
50+
"debug" : false,
51+
2952
/**
3053
* Print the queries that were executed to the output.
3154
* Possible values for show_query: "top", "bottom", true ("top"), or false (disable)
@@ -34,37 +57,50 @@
3457
* the bottom of result.
3558
*/
3659
"show_query": false,
60+
3761
/**
3862
* Possible values for autocompletion: "basic", "smart", true ("smart"),
3963
* or false (disable)
4064
* Completion keywords case is controlled by format.keyword_case (see below)
4165
*/
4266
"autocompletion": "smart",
67+
4368
// Settings used for formatting the queries and autocompletions
69+
//
70+
// "keyword_case" , "upper", "lower", "capitalize" and null (leaves case intact)
71+
// "identifier_case", "upper", "lower", "capitalize" and null (leaves case intact)
72+
// "strip_comments" , formatting removes comments
73+
// "indent_tabs" , use tabs instead of spaces
74+
// "indent_width" , indentation width
75+
// "reindent" , reindent code
4476
"format" : {
45-
"keyword_case" : "upper", // "upper", "lower", "capitalize" and null (leaves case intact)
46-
"identifier_case" : null, // "upper", "lower", "capitalize" and null (leaves case intact)
47-
"strip_comments" : false, // formatting removes comments
48-
"indent_tabs" : false, // use tabs instead of spaces
49-
"indent_width" : 4, // indentation width
50-
"reindent" : true // reindent code
77+
"keyword_case" : "upper",
78+
"identifier_case" : null,
79+
"strip_comments" : false,
80+
"indent_tabs" : false,
81+
"indent_width" : 4,
82+
"reindent" : true
5183
},
52-
"debug": false,
53-
"safe_limit": false, // unless false, appends LIMIT clause to SELECT statements (not compatible with all DB's)
54-
"unescape_quotes" : [
55-
"php"
56-
],
84+
5785
/**
5886
* The list of syntax selectors for which the plugin autocompletion will be active.
5987
* An empty list means autocompletion always active.
6088
*/
61-
"selectors": ["source.sql", "source.pgsql", "source.plpgsql.postgres", "source.plsql.oracle", "source.tsql"],
89+
"selectors": [
90+
"source.sql",
91+
"source.pgsql",
92+
"source.plpgsql.postgres",
93+
"source.plsql.oracle",
94+
"source.tsql"
95+
],
96+
6297
/**
6398
* Command line interface options for each RDBMS.
64-
* In this file, the section `cli` above has the names you can use here. E.g.: "mysql", "pgsql", "oracle"
99+
* In this file, the section `cli` above has the names you can use here.
100+
* E.g.: "mysql", "pgsql", "oracle"
65101
*
66-
* Names in the curly brackets (e.g. `{host}`) in sections `args`, `args_optional`, `env`, `env_optional`
67-
* are replaced by the values specified in the connetion.
102+
* Names in the curly brackets (e.g. `{host}`) in sections `args`, `args_optional`,
103+
* `env`, `env_optional` are replaced by the values specified in the connection.
68104
*/
69105
"cli_options": {
70106
"pgsql": {
@@ -109,6 +145,7 @@
109145
}
110146
}
111147
},
148+
112149
"mysql": {
113150
"options": ["--default-character-set=utf8"],
114151
"before": [],
@@ -149,6 +186,7 @@
149186
}
150187
}
151188
},
189+
152190
"mssql": {
153191
"options": [],
154192
"before": [],
@@ -194,6 +232,7 @@
194232
}
195233
}
196234
},
235+
197236
"oracle": {
198237
"options": ["-S"],
199238
"before": [
@@ -287,6 +326,7 @@
287326
}
288327
}
289328
},
329+
290330
"sqlite": {
291331
"options": [],
292332
"before": [],
@@ -317,6 +357,7 @@
317357
}
318358
}
319359
},
360+
320361
"vertica": {
321362
"options": [],
322363
"before" : [],
@@ -348,6 +389,7 @@
348389
}
349390
}
350391
},
392+
351393
"firebird": {
352394
"options": [],
353395
"before": [],
@@ -419,6 +461,7 @@
419461
}
420462
}
421463
},
464+
422465
"sqsh": {
423466
"options": [],
424467
"before": [],

0 commit comments

Comments
 (0)