Метод | Описание | |
---|---|---|
CommentBlock ( ITextView textView, ITextBuffer textBuffer, ITextRange range, IEditorShell editorShell ) : void |
Comments selected lines or current line if range has zero length. Continues adding commentcharacter even if line is already commented. # -> ## -> ### and so on. Matches C# behavior.
|
|
DoActionOnLines ( ITextView textView, ITextBuffer textBuffer, ITextRange range, IEditorShell editorShell, bool>.Func |
||
UncommentBlock ( ITextView textView, ITextBuffer textBuffer, ITextRange range, IEditorShell editorShell ) : void |
Uncomments selected lines or current line if range has zero length. Only removes single comment. ### -> ## -> # and so on. Matches C# behavior.
|
Метод | Описание | |
---|---|---|
CommentLine ( ITextSnapshotLine line ) : bool | ||
UncommentLine ( ITextSnapshotLine line ) : bool |
public static CommentBlock ( ITextView textView, ITextBuffer textBuffer, ITextRange range, IEditorShell editorShell ) : void | ||
textView | ITextView | |
textBuffer | ITextBuffer | |
range | ITextRange | |
editorShell | IEditorShell | |
Результат | void |
public static DoActionOnLines ( ITextView textView, ITextBuffer textBuffer, ITextRange range, IEditorShell editorShell, bool>.Func |
||
textView | ITextView | |
textBuffer | ITextBuffer | |
range | ITextRange | |
editorShell | IEditorShell | |
action | bool>.Func | |
actionName | string | |
Результат | void |
public static UncommentBlock ( ITextView textView, ITextBuffer textBuffer, ITextRange range, IEditorShell editorShell ) : void | ||
textView | ITextView | |
textBuffer | ITextBuffer | |
range | ITextRange | |
editorShell | IEditorShell | |
Результат | void |