Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Atom - Stop Trimming Whitespace

I really don't like the fact that the Atom editor will remove whitespace from the end of your lines. This will often cause lots of differences that appear when you come to commit your code. That, and I actually prefer using spaces to keep the indentation there and ready as shown in the meld diff below.

Luckily, stopping this functionality is really simple. Go to Edit > Preferences.

  • Select Packages from the left pane
  • Search for the whitespace pakage
  • Click the Disable button.

Last updated: 26th August 2018
First published: 16th August 2018

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch