问题
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?
回答1:
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 atom-editor's implementaton of cson.
回答2:
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.
回答3:
Here's what worked for me using the Mac version:
'.editor':
'ctrl-i': 'window:toggle-invisibles'
回答4:
For Atom 1.25.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'
来源:https://stackoverflow.com/questions/22884071/is-there-a-command-for-show-invisibles-in-atom