こんにちは。@mon_satです。 開発していてたまに困るのは、プロジェクトによってコーディングルールがばらばらで「インデントがタブ文字か半角空白か」などいろいろ統一されていないことです。 最近はIntelliJ IDEAで作業することが増えてきました。 エディタ側で自動的に設定しているコードスタイルにしてくれるのは大変ありがたいのですが、少し設定が面倒ともいえます。 また、プロジェクトメンバー間で別々のエディタを使っていても同じコーディング規約を適用したいものです。 CakePHP3.0のリポジトリを見ていて気づいたのが .editorconfig というファイルの存在で、検索して見つけたのは下記のWebサイト。 サイトのTOPページに載っているサンプルの .editorconfig の中身は以下のとおり。 これを見ているだけでもワクワクしてきませんか!? # EditorConfig