C# Class Microsoft.R.Editor.Formatting.AutoFormat

Show file Open project: Microsoft/RTVS

Public Methods

Method Description
HandleAutoformat ( ITextView textView, IEditorShell editorShell, char typedChar ) : void
IsPostProcessAutoformatTriggerCharacter ( char ch ) : bool
IsPreProcessAutoformatTriggerCharacter ( char ch ) : bool

Private Methods

Method Description
GetCaretPointInBuffer ( ITextView textView ) : SnapshotPoint?
GetFormatScope ( ITextView textView, ITextBuffer textBuffer, AstRoot ast ) : IKeywordScopeStatement
IsBetweenCurlyAndElse ( ITextBuffer textBuffer, int position ) : bool

Method Details

HandleAutoformat() public static method

public static HandleAutoformat ( ITextView textView, IEditorShell editorShell, char typedChar ) : void
textView ITextView
editorShell IEditorShell
typedChar char
return void

IsPostProcessAutoformatTriggerCharacter() public static method

public static IsPostProcessAutoformatTriggerCharacter ( char ch ) : bool
ch char
return bool

IsPreProcessAutoformatTriggerCharacter() public static method

public static IsPreProcessAutoformatTriggerCharacter ( char ch ) : bool
ch char
return bool