Partilhar via


Interface IBraceCompletionContextProvider

An extension point used to create an IBraceCompletionContext to provide language-specific handling on top of the default TIBraceCompletionSession objects.

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

Sintaxe

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

O tipo IBraceCompletionContextProvider expõe os membros a seguir.

Métodos

  Nome Descrição
Método público TryCreateContext Creates an IBraceCompletionContext to handle language specific actions such as parsing and formatting.

Superior

Comentários

This class extends the default brace completion behavior provided by. IBraceCompletionDefaultProvider. It allows for additional formatting after the closing brace has been inserted as well as custom handling of overtype scenarios and new line insertions.

For a fully customizeable IBraceCompletionSession, use IBraceCompletionSessionProvider.

Exemplos

This is a MEF component part, and should be exported with the following attribute:

[Export(typeof(IBraceCompletionContextProvider))]

Consulte também

Referência

Namespace Microsoft.VisualStudio.Text.BraceCompletion