0

I like to see my code like this

if(a == b)
{
    // My Code
}

public void method_name(parameter list)
{
    //My Code
}

not like this

if(a == b){
    // My Code
}

public void method_name(parameter list){
        //My Code
}

But i can't figure out how to do that in vs code automatically or using code formating

using manual strategy is very painful

I look for many solutions but can't figure out one

also installed Visual Studio Code Format extension but don't know how to set that up

Gama11
  • 31,714
  • 9
  • 78
  • 100
SHAH MD IMRAN HOSSAIN
  • 2,558
  • 2
  • 25
  • 44

1 Answers1

0

In Visual Studio select Tools menu option, then "Options". From there find: Text Editor, then find your associated language. C#, etc. Under "Formatting" there is an option for "Spacing". You can tweak as needed.

Bret Lipscomb
  • 480
  • 2
  • 7