LoginSignup
4
4

More than 5 years have passed since last update.

【メモ】Atom autocomplete-plus設定: 選択をtab/up/down 確定をEnterに

Last updated at Posted at 2018-10-30

概要

環境

MacBook Pro/Mojave/Atom

やりたいこと

オートコンプリートの選択と確定を、

  • 選択はタブで候補選択を下に、キーの上下でも上下移動
  • 確定はEnterキー

とすること。

手順

設定画面呼び出し

Atomの環境設定をクリック
image.png

設定画面呼び出し/パッケージ絞り込み

パッケージを選択し、autocomplete-plusを入力して絞り込み
image.png

UIで設定

Enterで確定、キーバインドを自分で設定するため、以下を2項目を変更。
image.png

設定ファイルで設定

キーバインドの設定は以下から
image.png

今回入れたのは、以下。

keymap.cson
'atom-text-editor.autocomplete-active':
  'tab': 'autocomplete-plus:move-down'
  'up': 'autocomplete-plus:move-up'
  'down': 'autocomplete-plus:move-down'
  'ctrl-p': 'autocomplete-plus:move-up'
  'ctrl-n': 'autocomplete-plus:move-down'
  'pageup': 'autocomplete-plus:page-up'
  'pagedown': 'autocomplete-plus:page-down'
  'home': 'autocomplete-plus:move-to-top'
  'end': 'autocomplete-plus:move-to-bottom'

タブでmove-down、キーのup/downを追加したが、残りはマニュアルに記載のあるものを採用。

まとめ

無事、これまで他のツールで経験してきた使用感にすることが出来た。

4
4
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
4
4