kdeng / my-blogs

Kefeng's blogs
0 stars 0 forks source link

.editorconfig #12

Open kdeng opened 5 years ago

kdeng commented 5 years ago

I am using a editorconfig as below.

# This is the project's root directory
root = true

[*]
# Use spaces for indentation
indent_style = space
# Each indent should contain 2 spaces
indent_size = 2
# Use Unix line endings
end_of_line = lf
# The files are utf-8 encoded
charset = utf-8
# No whitespace at the end of line
trim_trailing_whitespace = true
# A file must end with an empty line - this is good for version control systems
insert_final_newline = true
# A line should not have more than this amount of chars (not supported by all plugins)
max_line_length = 100

[{Makefile,**.mk}]
# Use tabs for indentation (Makefiles require tabs)
indent_style = tab