C# settings
Go to Tools > Options.
In the list on the left, go to Text Editor > C# > Advanced.
Text Editor Advanced Options windowSelect the check box Generate XML documentation comments for ///.
Select the check box Place 'System' directives first when sorting usings.
Select the check box Separate using directive groups.
In the list on the left, go to Text Editor > C# > Formatting > General.
Make sure the following check boxes are selected:
Text Editor Formatting Options windowIn the list on the left, go to Text Editor > C# > Formatting > Indentation.
Apply the following configuration:
Text Editor C# Indentation formatting windowIn the list on the left, go to Text Editor > C# > Formatting > New Lines.
Apply the following configuration:
Text Editor C# new lines formatting window
Text Editor C# new lines formatting window (continued)In the list on the left, go to Text Editor > C# > Formatting > Spacing.
Apply the following configuration:
Text Editor C# spacing options window
Text Editor C# spacing options window (continued)
Text Editor C# spacing options window (continued)
Text Editor C# spacing options window (continued)
Text Editor C# spacing options window (continued)