@@ -131,7 +131,7 @@ You may change the highlighting color, providing a color scope name such as
131
131
"error", "comment"… just like that:
132
132
133
133
``` js
134
- { " trailing_spaces_highlight_color " : " comment" }
134
+ { " highlight_color " : " comment" }
135
135
```
136
136
137
137
The scope should be defined in your current theme file. Here is a dummy,
@@ -164,7 +164,7 @@ You can make trailing spaces "invisible" yet still rely on the deletion
164
164
command. To do that, set the highlight scope to an empty string:
165
165
166
166
``` js
167
- { " trailing_spaces_highlight_color " : " " }
167
+ { " highlight_color " : " " }
168
168
```
169
169
170
170
Beware: this is ** not** the same as * disabling* the highlighting (see "On-
@@ -181,7 +181,7 @@ each time you are about to start a new word, the space you type is matched as
181
181
a trailing spaces. Currently edited line can thus be ignored:
182
182
183
183
``` js
184
- { " trailing_spaces_include_current_line " : false }
184
+ { " include_current_line " : false }
185
185
```
186
186
187
187
Even though the trailing spaces are not highlighted on this line, they are
@@ -195,7 +195,7 @@ When firing the deletion command, empty lines are matched as trailing regions,
195
195
and end up being deleted. You can specifically ignore them:
196
196
197
197
``` js
198
- { " trailing_spaces_include_empty_lines " : false }
198
+ { " include_empty_lines " : false }
199
199
```
200
200
201
201
They will not be highlighted either.
@@ -216,7 +216,7 @@ regions. You may either:
216
216
- specify as a setting:
217
217
218
218
``` js
219
- { " trailing_spaces_modified_lines_only " : true }
219
+ { " modified_lines_only " : true }
220
220
```
221
221
222
222
There is also a command to toggle this feature on and off. You may thus define
@@ -234,7 +234,7 @@ Setting this to `true` will ensure trailing spaces are deleted when you save
234
234
your document. It abides by the other settings, such as * Modified Lines Only* .
235
235
236
236
``` js
237
- { " trailing_spaces_trim_on_save " : true }
237
+ { " trim_on_save " : true }
238
238
```
239
239
240
240
### Save After Trim
@@ -246,7 +246,7 @@ around could prove useful. Setting this to `true` will automatically save your
246
246
document after you fire the deletion command:
247
247
248
248
``` js
249
- { " trailing_spaces_save_after_trim " : true }
249
+ { " save_after_trim " : true }
250
250
```
251
251
252
252
It is obviously ignored if * Trim On Save* is on.
@@ -265,7 +265,7 @@ to cause slowness (for instance, you already installed several *heavy*
265
265
plugins), you can disable live matching:
266
266
267
267
``` js
268
- { " trailing_spaces_enabled " : false }
268
+ { " enabled " : false }
269
269
```
270
270
271
271
In this case, for no trailing regions are matched until you request them to be
@@ -291,7 +291,7 @@ By default, the scope under the mouse cursor is shown by pressing
291
291
292
292
``` js
293
293
// Trailing spaces for find results, build output and markdown are ignored
294
- { " trailing_spaces_scope_ignore " : [" text.find-in-files" , " source.build_output" , " text.html.markdown" ] }
294
+ { " scope_ignore " : [" text.find-in-files" , " source.build_output" , " text.html.markdown" ] }
295
295
```
296
296
297
297
### For power-users only!
@@ -303,7 +303,7 @@ The default threshold is around 1 million of characters. This is
303
303
configurable (in "File Settings - User") and the unit is number of chars:
304
304
305
305
``` js
306
- { " trailing_spaces_file_max_size " : 1000 }
306
+ { " file_max_size " : 1000 }
307
307
```
308
308
309
309
#### The matching pattern
@@ -316,7 +316,7 @@ to abide by another definition to cover edge-cases, go ahead:
316
316
317
317
``` js
318
318
// *danger* will match newline chars and many other folks
319
- " trailing_spaces_regexp " : " [\\ s]+"
319
+ " regexp " : " [\\ s]+"
320
320
```
321
321
322
322
About Sublime Text's built-in features
0 commit comments