How do I make Atom stop adding these new lines

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

Upvotes: 7

Views: 1789

Answers (1)

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

Whitespace package settings

Upvotes: 7

Related Questions