Condividi tramite


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)

Syntax

'Declaration
Public Interface IBraceCompletionContextProvider
public interface IBraceCompletionContextProvider
public interface class IBraceCompletionContextProvider
type IBraceCompletionContextProvider =  interface end
public interface IBraceCompletionContextProvider

The IBraceCompletionContextProvider type exposes the following members.

Methods

  Name Description
Public method TryCreateContext Creates an IBraceCompletionContext to handle language specific actions such as parsing and formatting.

Top

Remarks

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.

Examples

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

[Export(typeof(IBraceCompletionContextProvider))]

See Also

Reference

Microsoft.VisualStudio.Text.BraceCompletion Namespace