Code formatting for C#¶
Recommended IDE¶
VSCode
Code Formatting (Setup)¶
Install the C# extension https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp
Ensure that
Format: Enableis checked inSettings > Extensions > C# ConfigurationThe standard shortcut for formatting (
Ctrl + Alt + F) might not be working correctly, you can force VSCode to format the file by pressingCtrl + Shift + P, typingFormatand clicking onFormat Document.