We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would like to know how can I change format settings for brackets, prefer "this" and other options that I can change on Visual Studio.
The text was updated successfully, but these errors were encountered:
The C# extension supports configuring formatting options in an .editorconfig file. You can see details at https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options?view=vs-2022. Here is the configuration for newline before brace. You can run dotnet new editorconfig to generate a good starter .editorconfig. This approach also has support inside Visual Studio as well as with the dotnet-format command line tool.
dotnet new editorconfig
Sorry, something went wrong.
You can also put an omnisharp.json file under the same path with your solution file as well.
omnisharp.json
https://github.com/OmniSharp/omnisharp-roslyn/wiki/Configuration-Options
Alternatively you can use a single global omnisharp.json (I did not test this myself).
OmniSharp/omnisharp-roslyn#809
Thanks, I figured it out.
.editorconfig will always work. And we also can use generated Visual Studio .editorconfig.
No branches or pull requests
I would like to know how can I change format settings for brackets, prefer "this" and other options that I can change on Visual Studio.
The text was updated successfully, but these errors were encountered: