Share via


IBraceCompletionContextProvider, interface

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

Espace de noms :  Microsoft.VisualStudio.Text.BraceCompletion
Assembly :  Microsoft.VisualStudio.Text.UI (dans Microsoft.VisualStudio.Text.UI.dll)

Syntaxe

'Déclaration
Public Interface IBraceCompletionContextProvider
public interface IBraceCompletionContextProvider
public interface class IBraceCompletionContextProvider
type IBraceCompletionContextProvider =  interface end
public interface IBraceCompletionContextProvider

Le type IBraceCompletionContextProvider expose les membres suivants.

Méthodes

  Nom Description
Méthode publique TryCreateContext Creates an IBraceCompletionContext to handle language specific actions such as parsing and formatting.

Début

Notes

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.

Exemples

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

[Export(typeof(IBraceCompletionContextProvider))]

Voir aussi

Référence

Microsoft.VisualStudio.Text.BraceCompletion, espace de noms