I have an option trim_trailing_white_space_on_save
turned on. And for some files I should prevent removing trailing white spaces, because they are important.
How to remove this behaviour for some files, e.g. *.dat?
I have an option trim_trailing_white_space_on_save
turned on. And for some files I should prevent removing trailing white spaces, because they are important.
How to remove this behaviour for some files, e.g. *.dat?
In Sublime 3, just open any file with the extension you'd like to have specific settings for, and go to
Preferences > Settings - Syntax Specific
.In my case I did it for Markdown (.md) and Sublime created a
Markdown.sublime-settings
file in which I added the following:In your case, for a .dat file, Sublime will create a
Plain text.sulbime-settings file
in which you can add the exact same setting.Have you already tried to create a configuration file for that specific extension and put trim_trailing_white_space_on_save = false ?
http://www.sublimetext.com/docs/2/settings.html