IndentingStyle Enum

Definition

Represents the different indenting styles supported by language services.

public enum IndentingStyle
type IndentingStyle = 
Public Enum IndentingStyle
Inheritance
IndentingStyle

Fields

Block 1

Pressing Enter inserts a new line and causes the caret to move to the same column as the first non-whitespace character on the previous line.

None 0

Pressing Enter inserts a new line and causes the caret to always move to the beginning of the new line.

Smart 2

Pressing Enter inserts a new line and causes the caret to either move to the same position as the first non-whitespace character on the previous line or to indent or outdent automatically depending on the character at the end of the previous line. For example, in C#, pressing Enter after a "{" causes a new line to be inserted and cursor to be indented properly. In addition, the "{" may be moved to its own line. If Enter is pressed after a "}", however, a new line is entered and the caret is moved out one level of indentation.

Applies to