26

Is there a command available to key mapping for toggling the display of invisibles in the Atom editor. A Show/Hide Invisibles command?

Where would I go to look for such a command?

0

4 Answers 4

29

YES

For Linux and Windows:
1) hit Ctrl+Shift+P and type keymap
2) select Application: open your keymap and add the following 2 lines to that file:

'body':
  'shift-ctrl-i': 'window:toggle-invisibles'

Or any non-conflicting keystroke combination of your liking instead of shift-ctrl-i.


Note
For further detail, read documentation on CSON fromat (season) and 's implementaton of cson.

17

You can open the Command Palette (Cmd + Shift + P) and search for the Window: Toggle Invisibles command. Selecting that command should toggle invisibles on/off.

11

Here's what worked for me using the Mac version:

'.editor':
   'ctrl-i': 'window:toggle-invisibles'
3
  • 1
    this works when I replaced '.editor' with 'body' in keymap.cson
    – James
    Aug 20, 2015 at 15:01
  • 1
    Yep, this worked for me: body:'ctrl-i': 'window:toggle-invisibles' in keymap.cson as well (found in Atom > Keymap...) Aug 11, 2016 at 21:23
  • hmm, this seems to work for me only other file types. except for python (.py). i checked the python language settings to ensure 'show Invisibles' is set, but that still doesn't help. Dec 12, 2017 at 23:29
3

For Atom 1.58.0 on Mac, open Settings, Keybindings, and click on the 'your keymap file' link above the search box. Add the following two lines to the bottom of the file and save it:

'atom-text-editor':
  'ctrl-i': 'window:toggle-invisibles'

Pressing Ctrl and i will then toggle on and off the invisible characters

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.