Auto formatting .Net Project in VS code

Editing the config for VSCode:

To config local project, we need to edit .vscode/settings.json.

Auto formatting the code with black when you save the changes:

{
    "editor.formatOnSave": true,
    "[csharp]": {
        "editor.defaultFormatter": "ms-dotnettools.csharp"
    }
}

留言

熱門文章