結論
.editorconfigを設定しよう。
現象
VSCode上のPlatform.ioで、main.cppはインデントが2になるのに、

よく見るとカッコ{}前の改行有無も違う。
Arudino風にフォーマット(コーディングスタイル)を統一したい。
解決方法
拡張機能 EditorConfig for VS Code のインストール
拡張機能の EditorConfig for VS Code をいんすとーるs
.editorconfig の配置
プロジェクトルートに.editorconfigファイルを配置する。
Arduino用の.editorconfigはこちらから入手できる。
arduino/tooling-project-assets/workflow-templates/assets/general
/.editorconfig
Shift-Alt-Fでオートフォーマットすると、ちゃんとインデントが2になる。



