Skip to content
This repository has been archived by the owner on Sep 20, 2020. It is now read-only.

Visual Studio

wimh edited this page Jul 22, 2011 · 3 revisions

Visual Studio

Visual Studio 2010 (todo)

Visual Studio 2008

Text Editor options

Change these settings (Tools/Options/Text Editor/C#/Formatting)

  • New lines:
    • New line options for braces:
      • uncheck: Place open brace on new line for types
      • uncheck: Place open brace on new line for anonymous methods
      • uncheck: Place open brace on new line for control blocks
      • uncheck: Place open brace on new line for anonymous types
      • uncheck: Place open brace on new line for object initializers
      • uncheck: Place open brace on new line for lambda expressions
    • New line options for keywords
      • uncheck: Place else on new line
      • uncheck: Place catch on new line
      • uncheck: Place finally on new line
  • Spacing:
    • Set spacing for method declarations
      • check: Insert space between method name and its opening parenthesis
    • Set spacing for method calls
      • check: Insert space between method name and its opening parenthesis
    • Set spacing for brackets
      • check: Insert space before open square bracket
Clone this wiki locally