Closed Heart1010 closed 1 year ago
Ok, my fault.... the ST3 internal setting was set to true, I changed that to false and now it works as it should. Closing this...
{
"trim_trailing_white_space_on_save": false,
}
Hmmm, I set my user setting for the plugin to
{
"trailing_spaces_modified_lines_only": true,
"trailing_spaces_trim_on_save": true,
}
but when I save the file all the whitespaces are deleted and not only whitespaces from the lines I modified.
Yes. It does NOT respect the setting of only on modified lines.
Do you guys have other tools that may conflict with this? For example is there a .editorconfig
with trim_trailing_whitespace = true
?
@BenMQ I have not any other tools that could conflict with TrailingSpaces and I have the same issue as @Heart1010 .
Update: I restarted Sublime Text and everything seems to be ok.
I’m on MacOSX with a build 3103.
After removing the folders “Installed Packages” and “Packages” in /Users/fabien//Library/Application Support/, I have the same issue: The lines are trimmed by default, even though the default SublimeText default settings (“/Users/fabien/Library/Application Support/Sublime Text 3/Packages/Default/Preferences.sublime-settings”) for trim_trailing_white_space_on_save
is set to false
.
Is there a way to check what is the actual value for a specific setting?
Thank you @BenMQ, I had trim_trailing_whitespace
set to true in .editorconfig
.
Resolving as I've tested this and it appears to work for me now (few years later). If it doesn't for someone then we need more info.
I'm on Linux build ST3 3065 and although I kept the default settings
the plugin always deletes all whitespaces in my file when I save it.