44
33

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Sublime Textで特定の拡張子にデフォルトのシンタックスを紐付ける

Posted at

最近 .eslintrc とか .jscsrc とかの設定ファイルが増えてきたけどSTはそんな新しい拡張子のファイルはシンタックスハイライトしてくれないから自分で設定する。

設定方法

  • 該当拡張子ファイルを開く
  • View -> Syntax -> Open All with current extension as... で好きなシンタックスを選択
    • Open All with current extension as...を選ぶこと
  • Preferences -> Settings More -> Syntax Specific - Userを選択
  • XXXX(選んだシンタックス名).sublime-settings のファイルが出来てるので、extensions の値の配列に他にも追加したい拡張子があれば足す

設定ファイルの置き場

~/Library/Application Suport/Sublime Text 3/Packages/User/XXXX.sublime-settings

44
33
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
44
33

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?