Atom text editor remove trailing whitespace on save

Nasif Md. Tanjim picture Nasif Md. Tanjim · May 22, 2015 · Viewed 45.2k times · Source

I use Sublime text. Now I am trying Atom. When I save any file in sublime text it does not include any trailing blank line. But saving any file in Atom leaves a trailing blank line. How do I force Atom not to leave trailing white spaces?

Answer

Dan Moldovan picture Dan Moldovan · May 22, 2015

Under your Atom Preferences go to Packages tab and search for whitespace. Click on the whitespace package and uncheck Ensure Single Trailing Newline option

enter image description here