-
Konstantin Nazarov authored
Editorconfig is a standard of defining indentation style and other settings such as newline types for different file types in a project. See https://editorconfig.org/ It is achieved by introducing a simple .editorconfig dotfile with glob expressions and settings per fiile type. Editors then can read this file and decide which indentation style they should use for a given project file.
Konstantin Nazarov authoredEditorconfig is a standard of defining indentation style and other settings such as newline types for different file types in a project. See https://editorconfig.org/ It is achieved by introducing a simple .editorconfig dotfile with glob expressions and settings per fiile type. Editors then can read this file and decide which indentation style they should use for a given project file.
.editorconfig 342 B
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
[CMakeLists.txt]
indent_style = space
indent_size = 4
[*.cmake]
indent_style = space
indent_size = 4
[*.lua]
indent_style = space
indent_size = 4
[*.{h,c,cc}]
indent_style = tab
tab_width = 8