Skip to content

Commit

Permalink
add .editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Qix- committed Nov 26, 2021
1 parent 1a68f9e commit ef0dc2c
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .editorconfig
Expand Up @@ -2,17 +2,37 @@ root = true

[*]
indent_style = tab
indent_size = 4
tab_width = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.coffee]
[{*.json,*.json.example,*.gyp,*.yml,*.yaml}]
indent_style = space
indent_size = 2

[{package.json,*.yml}]
[{*.py,*.asm}]
indent_style = space
indent_size = 2

[*.py]
indent_size = 4

[{*.asm,*.s}]
indent_style = space
indent_size = 8

[*.md]
trim_trailing_whitespace = false

# Ideal settings - some plugins might support these.
[*.js]
quote_type = single

[{*.c,*.cc,*.h,*.hh,*.cpp,*.hpp,*.m,*.mm,*.mpp,*.js,*.java,*.go,*.rs,*.php,*.ng,*.jsx,*.ts,*.d,*.cs,*.swift}]
curly_bracket_next_line = false
spaces_around_operators = true
spaces_around_brackets = outside
# close enough to 1TB
indent_brace_style = K&R

0 comments on commit ef0dc2c

Please sign in to comment.