LoginSignup
2
2

More than 5 years have passed since last update.

SublimeText2でテキストファイルやHTMLファイルの自動入力補完を有効にする

Last updated at Posted at 2013-12-29

SublimeText2の入力補完機能は、.rbや.jsといったソースファイルを編集しているときはキー入力に反応して補完ウィンドウを表示してくれるのですが、テキストやHTMLではCtrl + Spaceを入力しなければ表示されません。

テキストやHTMLでもキー入力に反応して補完されるようにするには設定ファイルのauto_complete_selectorを書き換えます。
(設定ファイルはメニューの"Preferences > Settings - Default"で表示できます)

デフォルトでは以下のようになっていると思います。

Preferences.sublime-settings(old)
"auto_complete_selector": "source - comment",

これに対してtextを追加します。

Preferences.sublime-settings(new)
"auto_complete_selector": "source - comment, text",

また、以下のように記述するとHTMLのみが対象になります。

Preferences.sublime-settings(new)
"auto_complete_selector": "source - comment, text.html",
2
2
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
2
2