Hi,
When indenting selections with the Tab key, I would like blank lines to be indented as well (currently they remain blank). (cf. attached screenshot)
Is there a configuration option to do that?
Cheers,
Julien
Hi,
When indenting selections with the Tab key, I would like blank lines to be indented as well (currently they remain blank). (cf. attached screenshot)
Is there a configuration option to do that?
Cheers,
Julien
Bump
By the way, for what itās worth, the desired behavior I described is also the behavior in TextMate.
add this to your user config file -** āauto_indentā: true, ātrim_automatic_white_spaceā: false**
I remember this working for me in Sublime Text 2, but these settings no longer have the same behaviour in Sublime Text 3.
For what itās worth, trim_automatic_white_space is currently supported in Sublime 3, and the default value is true. Turning it off results in the originally desired behaviour.
it doesnāt seem to for meā¦ ST3 build 3120.
"trim_automatic_white_space": false
in your user preferenceslorem
TabEnterEnter lorem
Tab
line 7 remains unindented
Youāre right, and I didnāt try that case. It appears that if a line is entirely empty, it will not get indented when you increase the indentation level. If a line consists of only tabs, though, then it will be indented as lines with non-whitespace characters are.
See: lorem
tab, enter, tab, enter lorem
tab (not sure how to do the buttons)
Then select all and indent. Line seven should have two tabs on it.
Using 3114, but I doubt itās changed.
confirmed. the "trim_automatic_white_space"
setting seems to make no difference. indeed, it does say that it should trim white space added by auto_indent when moving the caret off the line.
, which kinda implies that if the caret was never on the line then it shouldnāt affect it.
Ah, youāre right. I must have accidentally checked the two different cases when I previously āconfirmedā it working.
I can confirm, this issue is still persistent, as of 2/11/21 public build #3210.
I also agree that the issue is isolated to:
Upon pressing tab / triggering indent, empty/blank lines within a multi-line selection, are not indented.
Hereās a list of all my settings, pertaining to tabs and/or indentation:
āauto_indentā: true,
ādetect_indentationā: true,
āindent_to_bracketā: false,
āsmart_indentā: false,
ātab_completionā: false,
ātab_sizeā: 2,
ātranslate_tabs_to_spacesā: false,
ātrim_automatic_white_spaceā: false,
ātrim_trailing_white_space_on_saveā: false,
āuse_tab_stopsā: true,
What I end up doing, to remedy, is: