dotnet/roslyn

Add extension types to default .editorconfig templates

Aberta

#47.787 aberto em 17 de set. de 2020

 (16 comentários) (0 reação) (0 responsável)C# (4.257 forks)batch import
Area-IDEConcept-Continuous Improvementhelp wanted

Métricas do repositório

Stars
 (20.414 estrelas)
Métricas de merge de PR
 (Mesclagem média 6d 17h) (256 fundiu PRs em 30d)

Description

In the .editorconfig templates one can add through Visual Studio, the file types registered for the tab spacing are:

indent_style = tab
# Code files
[*.{cs,csx,vb,vbx}]
indent_size = 4
insert_final_newline = true
charset = utf-8-bom

Presently in Visual Studio, the XML editor defaults are tabs, not spaces like all other areas. EditorConfig is some guidance we use for consistency and we should add common .NET XML file types to our default template. Namely change to add csproj/vbproj/fsproj/xml as types so the new version would be something like this.

indent_style = tab
# Code files
[*.{cs,csx,vb,vbx,csproj,vbproj,fsproj,xml}]
indent_size = 4
insert_final_newline = true
charset = utf-8-bom

Guia do colaborador