Sublime Forum

Unwanted amendments to my files

#1

Hi
I love ST2 but am infuriated by its love of making edits to parts of my files that I am not editing. Our software revision control system (git) sees these changes, resulting in very messy commits. The problem seems to be where there are superfluous spaces in source code (Ruby and JavaScript, if this matters) – Sublime Text helpfully cleans these up but I don’t want it to – I’m sure there’s a simple config directive to prevent this behaviour but I don’t know what it is.

Any help gratefully received!

Thanks,
Michael

0 Likes

#2

Try adding the following setting in your user settings:

	"trim_trailing_white_space_on_save": false
0 Likes

#3

Not sure what is does, but you could also play with the “trim_automatic_white_space” settings as well…

0 Likes

#4

[quote=“jbjornson”]Try adding the following setting in your user settings:

"trim_trailing_white_space_on_save": false [/quote]

I now owe you a pint! Problem solved :smiley:

0 Likes