Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show only whitespaces in Atom (not EOL)

Tags:

If I choose Show Invisibles in Atom settings, then all invisible characters become visible:

enter image description here

I would like to hide EOLs, because they pollute the view.

Is this achievable?

like image 225
imkost Avatar asked Sep 14 '15 11:09

imkost


People also ask

How do you show special characters in an Atom?

Displaying Invisible Characters in 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.


1 Answers

There is no ui-option for this, but it is achievable via Atom config:

"*":
  editor:
    invisibles:
      eol: false

Also you can hide tabs and spaces if you want:

"*":
  editor:
    invisibles:
      eol: false
      tab: false
      space: false

UPDATE

Atom has been changed since the original answer, and now it has UI to config invisibles:

Invisibles menu block

like image 67
imkost Avatar answered Nov 18 '22 01:11

imkost