.editorconfig for Visual Studio
Generate .editorconfig
You can generate an .editorconfig base on your current style by:
Tools > Options > Text Editor > C# > Code Style
Install the extension
Install the extension EditorConfig
Apply format
In order to format your code, there are many ways:
- VS document format (Ctrl K, Ctrl D)
- VS Code Clean up
- Via extensions Code Cleanup On Save, Format document on Save or Trailing Whitespace Visualizer