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

A command that provides for cleaning up code in the active document.
Inheritance: BaseCommand
Afficher le fichier Open project: editorconfig/editorconfig-visualstudio

Private Properties

Свойство Type Description
CleanupActiveCodeCommand System.ComponentModel.Design
GetCurrentTextBuffer ITextBuffer
OnBeforeDocumentSave void

Méthodes protégées

Méthode Description
OnBeforeQueryStatus ( ) : void

Called to update the current status of the command.

OnExecute ( ) : void

Called to execute the command.

Private Methods

Méthode 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 méthode

Called to update the current status of the command.
protected OnBeforeQueryStatus ( ) : void
Résultat void

OnExecute() protected méthode

Called to execute the command.
protected OnExecute ( ) : void
Résultat void