Standardize Visual Studio code formatting

1

I have a code generated automatically as shown below:

Iwantedtoformatitautomaticallysothatitwasintheformat:

publicintId{get;set;}

Note:ThiscodewasgeneratedautomaticallybytheVisualStudiomodelingproject-ClassDiagram

    
asked by anonymous 06.09.2016 / 17:16

1 answer

1

Go to: Tools - > Options - > Text Editor - > C # - > Formatting - > Wrapping - > (check):

  • Leave block on single line
  • Leave Statements and member declaration on the same line

    
06.09.2016 / 17:24