Sublime Forum

Disable auto-formatting on save

#1

Hi everyone!

I have a project I started with Atom and/or PHPStorm, and now I want to switch to Sublime

The problem is whenever I save, the whole file gets reformatted and that is a big mess for git, which shows mostly all lines being modified.

I want to disable auto-format on save. Is that possible?

Please, help me! And thank you so much!

1 Like

#2

Can you describe how it is being formatted? What changes?

1 Like

#3

What type of file do you save .php? Do you have any plugin installed?

0 Likes

#4

It trims intentional two spaces at the end of lines.

0 Likes

#5

Disable trim_automatic_white_space in your (syntax-specific) settings.

0 Likes