How do I make Atom stop adding these new lines

Viewed 1185

I open in Atom a PHP file I have originally edited in NetBeans IDE.

As soon as I edit a line of code, when checking git versioning view I can see a lot more changes that I have actually done.

All those are new lines added by Atom.

Example php file with new lines added by Atom

1 Answers

I have solved it by going to Atom Settings, Packages, search for Whitespace package and disabled Remove Trailing Whitespace.

Whitespace package settings

Related