Is there a command for “Show Invisibles” in Atom?

↘锁芯ラ 提交于 2020-07-04 06:23:32

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!