Closed Commenter123 closed 4 years ago
I'm having the same problem with pug/jade-files. This package will remove spaces regardless of the syntax-ignore rule.
"trailing_spaces_syntax_ignore": ["Pug", "Jade"]
Same for me.
Note for people like me that may still be having issues with this setting: Restart ST. As of this comment, changes to the TrailingSpaces settings don't seem to stick until you do. With that, using the base package name (e.g. "Markdown Extended") in the "trailing_spaces_syntax_ignore"
array does indeed work. Sorry to bump an oldish thread, but this seems to be a common confusion.
In my case the base name of syntax file works: i'm using string "Bash" for syntax Bourne Again Shell (bash)
with base file Bash.sublime-syntax
.
ST restart is needed after changing settings currently.
So I found this setting "trailing_spaces_syntax_ignore" which allows to "ignore" files. Added this to the Plugin's user config:
"trailing_spaces_syntax_ignore": ["Diff", "Markdown"]
Then opened a .md file, Set Syntax to "Markdown", but the Plugin is still trimming trailing spaces.What's the problem? If I set "trailing_spaces_trim_on_save" to false, trailing spaces are not removed. So I think it's a problem of this plugin, isn't it?