Skip to content

Commit bc541f7

Browse files
nicksayeustas
authored andcommitted
Add an EditorConfig file to provide consistent style across editors. (google#579)
1 parent 5244106 commit bc541f7

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.editorconfig

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# http://editorconfig.org
2+
# Consistent coding style across different editors.
3+
4+
# Top-most file
5+
root = true
6+
7+
# Global styles:
8+
# - indent 2 spaces
9+
# - add final new line
10+
# - trim trailing whitespace
11+
[*]
12+
charset = utf-8
13+
end_of_line = lf
14+
indent_size = 2
15+
indent_style = space
16+
insert_final_newline = true
17+
trim_trailing_whitespace = true
18+
19+
# BUILD:
20+
# - indent 4 spaces
21+
[BUILD]
22+
indent_size = 4
23+
24+
# Makefile:
25+
# - indent 1 tab
26+
[Makefile]
27+
indent_size = tab
28+
indent_style = tab
29+
30+
# Markdown:
31+
# - indent 4 spaces
32+
# - trailing whitespace is significant
33+
[*.md]
34+
indent_size = 4
35+
trim_trailing_whitespace = false
36+
37+
# Python
38+
# - indent 4 spaces
39+
[*.py]
40+
indent_size = 4

0 commit comments

Comments
 (0)