C# Class EditorConfig.VisualStudio.Integration.Commands.CleanupActiveCodeCommand

A command that provides for cleaning up code in the active document.
Inheritance: BaseCommand
ファイルを表示 Open project: editorconfig/editorconfig-visualstudio

Private Properties

Property Type Description
CleanupActiveCodeCommand System.ComponentModel.Design
GetCurrentTextBuffer ITextBuffer
OnBeforeDocumentSave void

Protected Methods

Method Description
OnBeforeQueryStatus ( ) : void

Called to update the current status of the command.

OnExecute ( ) : void

Called to execute the command.

Private Methods

Method Description
CleanupActiveCodeCommand ( EditorConfigPackage package ) : System.ComponentModel.Design

Initializes a new instance of the CleanupActiveCodeCommand class.

GetCurrentTextBuffer ( ) : ITextBuffer
OnBeforeDocumentSave ( Document document, ITextBuffer textBuffer ) : void

Called before a document is saved in order to potentially run code cleanup.

Method Details

OnBeforeQueryStatus() protected method

Called to update the current status of the command.
protected OnBeforeQueryStatus ( ) : void
return void

OnExecute() protected method

Called to execute the command.
protected OnExecute ( ) : void
return void