菜单:Tools->Options
Text Editor
Behavior
Automatic behaviors
× enable on the fly code formatting
Syntax Highlighting: Visual Studio
Source Code
Code Formatting
C# source code: Microsoft Visual Studio