Formatting and Linting
You can format your C# source code using theC# Dev Kit extension, a lightweight extension to enhance your C# development experience in Visual Studio Code.
Navigate toFile >Preferences >Settings (⌘, (Windows, LinuxCtrl+,)) to customize how your.cs
files are formatted. The Settings editor gives you a list of different formatting options (particularly underCommonly Used andText Editor) that you can adjust across your specific workspace or your entire user profile.
How to support EditorConfig with C# Dev Kit
EditorConfig (.editorconfig) files are supported with theEditorConfig for VS Code extension, letting you customize formatting options in your C# project. These files are also used to override the user/workspace settings with the settings you specify in them.