What is .editorconfig file?

EditorConfig is an open source text editor file format for maintaining consistent coding styles for multiple developers working on the same project across various editors and IDEs.

An example for my Laravel and Javascript projects is the following:

.editorconfig

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
# 4 space indentation
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

# Matches multiple files with brace expansion notation
# Set default charset
[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2

Victor Yoalli

This is me.