Skip to content

Commit 4a90738

Browse files
committed
add editor config
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent dd6b2bf commit 4a90738

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.editorconfig

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# unifying the coding style for different editors and IDEs => editorconfig.org
2+
3+
; indicate this is the root of the project
4+
root = true
5+
6+
###########################################################
7+
; common
8+
###########################################################
9+
10+
[*]
11+
charset = utf-8
12+
13+
end_of_line = LF
14+
insert_final_newline = true
15+
trim_trailing_whitespace = true
16+
17+
indent_style = space
18+
indent_size = 2
19+
20+
###########################################################
21+
; make
22+
###########################################################
23+
24+
[Makefile]
25+
indent_style = tab
26+
27+
[makefile]
28+
indent_style = tab
29+
30+
###########################################################
31+
; markdown
32+
###########################################################
33+
34+
[*.md]
35+
trim_trailing_whitespace = false
36+
37+
###########################################################
38+
; golang
39+
###########################################################
40+
41+
[*.go]
42+
indent_style = tab

0 commit comments

Comments
 (0)