Skip to content

EditorConfig

EditorConfig helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs.

Configuration

shell
# .editorconfig
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

Integration

VSC

Install the corresponding EditorConfig plugin.

WebStorm

WebStorm comes with EditorConfig.

Released under the MIT License.