LoginSignup
19
18

More than 5 years have passed since last update.

Atomで新しくキーバインドを定義する方法

Posted at

GitHub製のエディタであるAtomでキーバインドを設定する方法について書く。ここでは"ctrl-tab"でタブの切り替えを行えるようにする。

"ctrl-tab"が既に使われていないか確認

「"cmd-," => Keybindings」で現在のキーバインドを確認できる。「Search Keybindings」のところに"ctrl-tab"と打ち込み、これが現在使用されていないことを確認する。

テンプレートとなる"alt-cmd-right"のキーバインドを検索

「Search Keybindings」のところに"alt-cmd-right"と打ち込む(このキーがデフォルトのタブ切り替えにバインドされている)。表示されるクリップアイコンをクリックし、テンプレートをクリップボードにコピーする。

~/.atom/keymap.csonの編集

'body':
  'ctrl-tab': 'pane:show-next-item'

を追記する。

19
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
18