Sublime is smart to auto trim empty lines that were created with indentation. Example:
function b() {
let a = 1;|
}
I press Enter twice to create an empty line, then start typing more code:
function b() {
let a = 1;
if|
}
At this point, the empty line above if already had its spaces/tabs trimmed by Sublime and it's really empty. In Cuda, the same line is still indented with useless spaces, made visible in the example below by me by replacing them with █.
function b() {
let a = 1;
██
if|
}
The case in this comment is probably applicable to almost all languages, like HTML.
from @pintassilgo in #5425
Sublime is smart to auto trim empty lines that were created with indentation. Example:
I press Enter twice to create an empty line, then start typing more code:
At this point, the empty line above
if
already had its spaces/tabs trimmed by Sublime and it's really empty. In Cuda, the same line is still indented with useless spaces, made visible in the example below by me by replacing them with█
.The case in this comment is probably applicable to almost all languages, like HTML.