Answer the question
In order to leave comments, you need to log in
How to add your own hotkeys?
Tell me how to add hotkeys to the Atom editor?
In keymap.cson I add:
# 'atom-text-editor':
# 'enter': 'editor:newline'
# 'ctrl-alt-d': 'custom:addDiv'
# atom.commands.add 'atom-text-editor', 'custom:addDiv', ->
# atom.workspace.getActiveTextEditor()?.insertText('<div class=""></div>')
# atom.workspace.getActiveTextEditor()?.moveLeft(6)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question