Skip to content
代码片段 群组 项目
.editorconfig 1012 字节
更新 更旧
  • 了解如何忽略特定修订
  • ; EditorConfig to support per-solution formatting.
    ; Use the EditorConfig VS add-in to make this work.
    ; http://editorconfig.org/
    
    ;
    ; Here are some resources for what's supported for .NET/C#
    ; https://kent-boogaart.com/blog/editorconfig-reference-for-c-developers
    ; https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference?view=vs-2017
    ;
    ; Be **careful** editing this because some of the rules don't support adding a severity level
    ; For instance if you change to `dotnet_sort_system_directives_first = true:warning` (adding `:warning`)
    ; then the rule will be silently ignored.
    
    
    ; This is the default for the codeline.
    root = true
    
    [*]
    indent_style = space
    charset = utf-8
    trim_trailing_whitespace = true
    insert_final_newline = true
    
    
    dotnet_sort_system_directives_first = true
    
    
    [*.{xml,config,*proj,nuspec,props,resx,targets,yml,tasks}]
    indent_size = 2
    
    [*.json]
    indent_size = 2
    
    [*.{ps1,psm1}]
    indent_size = 4
    
    [*.sh]
    indent_size = 4
    end_of_line = lf