PhpStormでeditorconfigが動作しなかったのでなおした話
はじめに
今回はPhpStormで EditorConfigのプラグインを入れているにも関わらずファイルのインデントが .editorconfigの 設定を見てくれなかったので修正した話です。
いきなり解決方法
- Editor Configのプラグインを入れていない人は Preferences> Plugins よりインストール
- Preferences > Code Style > Enable Editor Config support にチェック
スクショでいうとここ
さいごに
チェック入れ忘れてたのでこれまでずっと .editorconfig の設定見てくれてなかったんですね...
今気がつけてよかったです
参考サイト
https://intellij-support.jetbrains.com/hc/en-us/community/posts/207388125-Tabs-and-indents-settings-does-not-workintellij-support.jetbrains.com