Skip to content

Instantly share code, notes, and snippets.

@abalaci
Last active March 28, 2021 18:17
Show Gist options
  • Save abalaci/8fc4ef6835c440d56c08829cf40e427b to your computer and use it in GitHub Desktop.
Save abalaci/8fc4ef6835c440d56c08829cf40e427b to your computer and use it in GitHub Desktop.
A collection of common .editorconfig preferences.
# https://editorconfig-specification.readthedocs.io/
root = true
[*]
charset = utf-8
indent_size = 4
indent_style = space
insert_final_newline = true
tab_width = 4
trim_trailing_whitespace = true
[*.cs]
dotnet_separate_import_directive_groups = false
dotnet_sort_system_directives_first = true
[*.csproj]
indent_size = 2
tab_width = 2
[*.{css,html}]
indent_size = 2
tab_width = 2
[*.{json,md,yml}]
indent_size = 2
tab_width = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment