Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Atom Editor-view whitespace character

Tags:

atom-editor

I am a newbie in python and I like Atom Editor, you know the indentation precision and spaces control is really important.

How can Atom-editor show non printable characters (I'm interested in SPACEs and TABs)?

like image 562
Dot4inch Avatar asked Feb 26 '16 09:02

Dot4inch


People also ask

How do you show whitespace in an Atom?

To display spaces, tabs and linebreaks in Atom, you'll need to go to “Settings” -> “Editor” and then scroll down until you find the “Show Invisibles” option.

How do you get rid of whitespace in an Atom?

The "Remove Trailing Whitespace" option is on by default. This means that every time you save any file opened in Atom, it will strip all trailing whitespace from the file. If you want to disable this, go to the whitespace package in your settings panel and uncheck that option.


2 Answers

There is a Show Invisibles checkbox in the Editor Settings.

You can customize how these characters look too.

enter image description here

like image 171
xuanduc987 Avatar answered Oct 07 '22 12:10

xuanduc987


To show white space chars in Atom open up the config file ( file --> config). Then under the invisibles:{} line enter this line:

showInvisibles: true 

Then save the file. The white spaces will now be visible such as spaces; tabs & EOL

enter image description here

like image 45
Catto Avatar answered Oct 07 '22 12:10

Catto