-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
40 lines (34 loc) · 938 Bytes
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# EditorConfig: https://EditorConfig.org
#
# Atom plugin: https://atom.io/packages/editorconfig
# Sublime plugin: https://github.com/sindresorhus/editorconfig-sublime
# Vim plugin: https://github.com/editorconfig/editorconfig-vim
# Emacs plugin: https://github.com/editorconfig/editorconfig-emacs
# VSCode plugin: https://github.com/editorconfig/editorconfig-vscode
# top-most EditorConfig file
root = true
[*]
end_of_line = lf # Unix-style newlines
[CMakeLists.txt]
trim_trailing_whitespace = true
# C/C++
[*.{cpp,c,h,hpp}]
max_line_length = 100
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
# Python files
[*.py]
max_line_length = 100
charset = utf-8
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
# bash
[*.sh]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true