IBraceCompletionContextProvider Interface

 

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 (in Microsoft.VisualStudio.Text.UI.dll)

public interface class IBraceCompletionContextProvider

NameDescription
System_CAPS_pubmethodTryCreateContext(ITextView^, SnapshotPoint, Char, Char, IBraceCompletionContext^)

Creates an IBraceCompletionContext to handle language specific actions such as parsing and formatting.

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.

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

[Export(typeof(IBraceCompletionContextProvider))]
Return to top
Show: