Compartilhar via


Interface ISmartIndentationService

Determina o recuo automático quando a tecla enter for pressionada ou quando estiver navegando para uma linha vazia.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (em Microsoft.VisualStudio.Text.UI.dll)

Sintaxe

'Declaração
Public Interface ISmartIndentationService
public interface ISmartIndentationService
public interface class ISmartIndentationService
type ISmartIndentationService =  interface end
public interface ISmartIndentationService

O tipo ISmartIndentationService expõe os membros a seguir.

Métodos

  Nome Descrição
Método público GetDesiredIndentation Obtém o recuo desejado de uma ITextSnapshotLine conforme exibido na ITextView.

Superior

Comentários

Isso é uma parte de componente MEF e deve ser importado da seguinte maneira:

[Import] ISmartIndentationService selector = null;

Este serviço consome ISmartIndentProvider para determinar como executar o recuo.

Consulte também

Referência

Namespace Microsoft.VisualStudio.Text.Editor