So I want to make a keyboard shortcut to first select all the text and then auto indent it.
This is my code for the init.coffee
atom.commands.add ‘atom-text-editor’, ‘custom:auto-format’, ->
editor = atom.workspace.getActiveTextEditor()
core.selectAll();
editor.autoIndent()
And this is my code for the keymap.cson
’atom-text-editor’:
‘ctrl-shift-f’: ‘custom:auto-format’
Now when I try to use the shortcut, nothing happens. Can someone help please.
Thanks, Popolok