【怠け者ノート】私のeditorconfig構成


Editorconfigは、マルチプラットフォーム、マルチソフトウェアに適したコードフォーマットを統一するためのソリューションです.
公式サイト転送ゲート:Editorconfig
editorconfigの構成は非常に簡単で、あなたの作業ルートディレクトリの下に新しいものを作成するだけです.editorconfigファイル:
root = true

[*]
charset = utf-8
end_of_line = lf

[**.{h,cc,cxx,cpp,proto,lua}]
indent_style = space
indent_size = 2
table_width = 2

[{**.py,wscript,wscript_*}]
indent_style = space
indent_size = 4
table_width = 4

カンマの前後にスペースがないように注意してください.