-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
54 lines (44 loc) · 929 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# EditorConfig: http://editorconfig.org
# Top-most EditorConfig file
root = true
# Basic defaults
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 100
# Python PEP8, PHP (PSR-2), Perl, Rust
[*.{py,py3,php,pl,pm,t,PL,rs}]
indent_size = 4
# Java (Oracle Standard) & Kotlin
[*.{java,kt,kts}]
indent_size = 4
# Go (compatible with gofmt)
[*.go]
indent_size = tab
indent_style = tab
# Microsoft languages & PowerShell
[*.{cs,csx,vb,vbx}]
indent_size = 4
# PowerShell
[*.{ps1,psd1,psm1,pssc}]
indent_size = 4
# Command & Batch
[*.{cmd,bat}]
end_of_line = crlf
indent_size = 4
# Makefiles
[{Makefile,*.mk,Makefile.*}]
indent_size = tab
indent_style = tab
# For shfmt
[*.{sh,bash}]
shell_variant = bash
binary_next_line = true
switch_case_indent = true
space_redirects = true
keep_padding = false
function_next_line = false