Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change default parentheses formatting in Visual Studio

Hi guys I'm new to C# and VisualStudio and I want to change the default formatting style from this:

 void Start()
 {
        
 }

To this:

 void Start() {

 }    

Is it possible? Anyone know how to do that?

like image 792
Daniele Scalco Avatar asked Sep 05 '25 03:09

Daniele Scalco


1 Answers

Go to Tools -> Options -> Text Editor -> C# -> Code Style -> Formatting-> New Lines

You need to remove the check on all options here to never put the open bracket on a new line.

like image 190
Nicolas Quintana Avatar answered Sep 09 '25 19:09

Nicolas Quintana