dotnet/roslyn
Add extension types to default .editorconfig templates
Aperta
#47.787 aperta il 17 set 2020
Area-IDEConcept-Continuous Improvementhelp wanted
Metriche repository
- Star
- (20.414 stelle)
- Metriche merge PR
- (Merge medio 6g 17h) (256 PR mergiate in 30 g)
Descrizione
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