on-internet
← Community

Change C# formatting braces in VScode

Stack Overflow ·

When working on my C# project in VScode, prettier, the extension, doesnt apply the same formatting that it uses in other languages which I prefer. It doesn't format my code which is where I want my braces to be on the same line as my function statements like below void Start() { DefaultLayer = gameObject.layer; } however my code looks like this void Start() { DefaultLayer = gameObject.layer; } and wont change by adding anything like an omnisharp.json file in the root or modifying anything? How can I make my braces format as desired?

Comments

Sign in or sign up to comment and upvote.

No comments yet.