LoginSignup
6
6

More than 5 years have passed since last update.

IntelliJ IDEAに任意の拡張子を登録する

Last updated at Posted at 2016-11-28

任意の拡張子をIntelliJ IDEAに登録して、ハイライトや入力補完させることが出来ます。
例として、.propertis.originalという拡張子のファイルをpropertiesファイルタイプとして認識させてみます。

  • SettingsのEditor > File Types を開き、Recognized File Typesの一覧からお目当てのファイルタイプを選択。続けて、Registerd Patternsの一覧の+ボタンを押して拡張子を追加する
    before_setting_resize.png

  • 開いたダイアログ上で、追加したい拡張子を入力する
    dialog.png

  • 拡張子が追加された。これで登録した拡張子のファイルもpropertiesファイルとして認識されます。
    after_setting_resize.png

注意

一度開いたファイルはIntelliJを再起動するまで新しい設定が反映されないことがあるので、設定しても反映されない時は一度IntelliJを再起動して確かめてみてください。

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