Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 18 additions & 13 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,49 @@
# .NET coding convention settings for EditorConfig
# https://docs.microsoft.com/visualstudio/ide/editorconfig-code-style-settings-reference
#
# The .editorconfig comes from Roslyn and CoreFX repositories:
# https://github.com/dotnet/corefx/blob/master/.editorconfig
# This file comes from dotnet repositories:
# https://github.com/dotnet/runtime/blob/master/.editorconfig
# https://github.com/dotnet/roslyn/blob/master/.editorconfig

# Top-most EditorConfig file
root = true

[*]
charset = utf-8

# Don't use tabs for indentation.
# indent_size intentionally not specified in this section
indent_style = space
# (Please don't specify an indent_size here; that has too many unintended consequences.)
insert_final_newline = true

# Code files
[*.{cs,csx,cpp,h}]
# Source code
[*.{cs,ps1,psd1,psm1}]
indent_size = 4

# Shell scripts
[*.sh]
indent_size = 4
insert_final_newline = true
charset = utf-8

# Xml project files
[*.{csproj,resx,ps1xml}]
indent_size = 2

# JSON files
[*.json]
# Data serialization
[*.{json,yaml,yml}]
indent_size = 2

# Markdown
[*.md]
indent_size = 2

# Xml files
[*.{xml,stylecop,resx,ruleset}]
[*.{resx,ruleset,stylecop,xml,xsd,xsl}]
indent_size = 2

# Xml config files
[*.{props,targets,config,nuspec}]
indent_size = 2

# Dotnet code style settings:
[*.{cs,cpp}]
[*.cs]
# Sort using and Import directives with System.* appearing first
dotnet_sort_system_directives_first = true

Expand Down