Installation
Prerequisites
Formatter and linter
Change C# default formatter
- Install Prettier
Open Visual Studio Code settings
Then click to "open settings (JSON)"
Add the formatter config
{ "editor.defaultFormatter": "esbenp.prettier-vscode", "[csharp]": { "editor.defaultFormatter": "ms-dotnettools.csharp" } }
Add the linter config
{ "omnisharp.enableRoslynAnalyzers": true, "omnisharp.enableEditorConfigSupport": true }
Format code on save
File
Preferences
Settings
- Search for
Format On Save
and check the box.
It is also possible to format the code manually with a shortcut:
- On Windows
Shift + Alt + F
- On macOS
Shift + Option + F
- On Linux
Ctrl + Shift + I
Start the app
When the repo is cloned, go see README.md to know how properly start the app.