Sublime 3:有没有办法从空行中删除 tabs/spaces ?
Sublime 3: Is there a way to remove tabs/spaces from empty lines?
我正在寻找一种方法来强制 Sublime 3 从我的代码中空的任何缩进行中删除所有空格和制表符,无论是在我保存文件时还是在我输入时。
有办法吗?
|
if (...) {
|
some code
|
}
至
|
if (...) {
|
some code
|
}
将此添加到您的首选项中 (Preferences > Settings):
"trim_trailing_white_space_on_save": true
这会在您保存文件时删除所有行末尾的空格,甚至是空行。
引用默认设置文件:
// Set to true to removing trailing white space on save
"trim_trailing_white_space_on_save": false,
我正在寻找一种方法来强制 Sublime 3 从我的代码中空的任何缩进行中删除所有空格和制表符,无论是在我保存文件时还是在我输入时。
有办法吗?
|
if (...) {
|
some code
|
}
至
|
if (...) {
|
some code
|
}
将此添加到您的首选项中 (Preferences > Settings):
"trim_trailing_white_space_on_save": true
这会在您保存文件时删除所有行末尾的空格,甚至是空行。
引用默认设置文件:
// Set to true to removing trailing white space on save
"trim_trailing_white_space_on_save": false,