Change tree-view:toggle keybinding


I want to change the keybinding for tree-view:toggle to editor:toggle-line-comments

However, when I enter this line into keymap.cson
’atom-text-editor’:‘ctrl-’: ‘editor:toggle-line-comments’

I get an error, because the quote gets escaped.

I do I wanage this ?

Thank you for the support.


I believe that you have to use four backslashes for the escaping to work.


Thank you,

After a bit of trying the correct command was:

'atom-workspace atom-text-editor':'ctrl-\\': 'editor:toggle-line-comments'