atom-react icon indicating copy to clipboard operation
atom-react copied to clipboard

Shortcut keys for various actions

Open ghost opened this issue 9 years ago • 2 comments

I am trying to find out how can I add shortcut for reformatting or re-indenting. I couldn't find anything in the official document. Please update me on how I can add a shortcut for these options. Thanks in advance.

ghost avatar Feb 12 '16 11:02 ghost

check this out https://github.com/orktes/atom-react/blob/master/menus/edit.cson#L25

you can assign it to atom keymap

terryx avatar Oct 11 '16 05:10 terryx

atom -> Keymap...

then add necessary binding, for ex:

'atom-text-editor':
  'cmd-alt-l': 'react:reformat-JSX'

anaumov avatar Jan 12 '17 09:01 anaumov