Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrailingSpaces always trims on save although it's set to false #79

Closed
Heart1010 opened this issue Oct 13, 2014 · 8 comments
Closed

TrailingSpaces always trims on save although it's set to false #79

Heart1010 opened this issue Oct 13, 2014 · 8 comments

Comments

@Heart1010
Copy link

I'm on Linux build ST3 3065 and although I kept the default settings

{
    "trailing_spaces_modified_lines_only": false,
    "trailing_spaces_trim_on_save": false,
}

the plugin always deletes all whitespaces in my file when I save it.

@Heart1010
Copy link
Author

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,
}

@Heart1010
Copy link
Author

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.

@Heart1010 Heart1010 reopened this Oct 13, 2014
@alkemann
Copy link

Yes. It does NOT respect the setting of only on modified lines.

@BenMQ
Copy link

BenMQ commented Nov 29, 2014

Do you guys have other tools that may conflict with this? For example is there a .editorconfig with trim_trailing_whitespace = true?

@YurkoHoshko
Copy link

@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.

@arkhi
Copy link

arkhi commented Apr 26, 2016

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?

@lakesare
Copy link

lakesare commented Jul 6, 2020

Thank you @BenMQ, I had trim_trailing_whitespace set to true in .editorconfig.

@rchl
Copy link
Member

rchl commented Jun 4, 2023

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.

@rchl rchl closed this as not planned Won't fix, can't repro, duplicate, stale Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants