How to change Atom Keybindings

前端 未结 3 1506
梦毁少年i
梦毁少年i 2021-02-19 08:36

I am looking to change keybindings of Atom text editor. I am familiar with Android Studio.

Does Atom allow us to customize key bindings?

3条回答
  •  情歌与酒
    2021-02-19 09:22

    You have to go to Edit -> Preferences -> Keybinding. In this tab you can see your actual binding and if you want to change it, you can access to the keymap file and overcharged configuration.

    To access this file you can click on the link below the "Keybindings" title.

    For example, if you want to replace the CtrlShiftK by CtrlShiftY, search it in the list, click on the copy icon to copy the configuration line, and put the line into the keymap file and replace the shortcut.

    For this example the new line is

    'atom-text-editor:not([mini])':
      'ctrl-shift-Y': 'editor:delete-line'
    

    This line replace ctrl-shift-K by ctrl-shift-Y. You have to relaunch Atom to apply this change.

提交回复
热议问题