Метод | Описание | |
---|---|---|
Attach ( ITextView textView ) : |
||
Dispose ( ) : void | ||
GetBlockIndent ( ITextSnapshotLine line ) : int | ||
GetDesiredIndentation ( ITextSnapshotLine line ) : int? | ||
GetDesiredIndentation ( ITextSnapshotLine line, IndentStyle indentStyle ) : int? | ||
GetSmartIndent ( ITextSnapshotLine line, |
Determines level of indentation in the line from AST and surrounding context. Called when user hits ENTER and editor needs to know level of indentation in the new line as well as when code is being auto-formatted and range formatter needs to know how to indent freshly formatted lines of code.
|
|
InnerIndentSizeFromLine ( ITextSnapshotLine line, Microsoft.R.Core.Formatting.RFormatOptions options ) : int | ||
InnerIndentSizeFromNode ( ITextBuffer textBuffer, IAstNode node, Microsoft.R.Core.Formatting.RFormatOptions options ) : int | ||
OuterIndentSizeFromLine ( ITextSnapshotLine line, Microsoft.R.Core.Formatting.RFormatOptions options ) : int | ||
OuterIndentSizeFromNode ( ITextBuffer textBuffer, IAstNode node, Microsoft.R.Core.Formatting.RFormatOptions options ) : int |
Метод | Описание | |
---|---|---|
GetFirstArgumentIndent ( ITextSnapshot snapshot, IFunction fc ) : int | ||
SmartIndenter ( ITextView textView ) : System |
public static Attach ( ITextView textView ) : |
||
textView | ITextView | |
Результат |
public static GetBlockIndent ( ITextSnapshotLine line ) : int | ||
line | ITextSnapshotLine | |
Результат | int |
public GetDesiredIndentation ( ITextSnapshotLine line ) : int? | ||
line | ITextSnapshotLine | |
Результат | int? |
public GetDesiredIndentation ( ITextSnapshotLine line, IndentStyle indentStyle ) : int? | ||
line | ITextSnapshotLine | |
indentStyle | IndentStyle | |
Результат | int? |
public static GetSmartIndent ( ITextSnapshotLine line, |
||
line | ITextSnapshotLine | Line to find the indent for |
ast | Optional AST | |
originalIndentSizeInSpaces | int | |
formatting | bool | /// Indicates if current call is from formatter or /// from the core editor for indentation when user typed Enter. /// |
Результат | int |
public static InnerIndentSizeFromLine ( ITextSnapshotLine line, Microsoft.R.Core.Formatting.RFormatOptions options ) : int | ||
line | ITextSnapshotLine | |
options | Microsoft.R.Core.Formatting.RFormatOptions | |
Результат | int |
public static InnerIndentSizeFromNode ( ITextBuffer textBuffer, IAstNode node, Microsoft.R.Core.Formatting.RFormatOptions options ) : int | ||
textBuffer | ITextBuffer | |
node | IAstNode | |
options | Microsoft.R.Core.Formatting.RFormatOptions | |
Результат | int |
public static OuterIndentSizeFromLine ( ITextSnapshotLine line, Microsoft.R.Core.Formatting.RFormatOptions options ) : int | ||
line | ITextSnapshotLine | |
options | Microsoft.R.Core.Formatting.RFormatOptions | |
Результат | int |
public static OuterIndentSizeFromNode ( ITextBuffer textBuffer, IAstNode node, Microsoft.R.Core.Formatting.RFormatOptions options ) : int | ||
textBuffer | ITextBuffer | |
node | IAstNode | |
options | Microsoft.R.Core.Formatting.RFormatOptions | |
Результат | int |