IBraceCompletionContextProvider 接口

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

命名空间:  Microsoft.VisualStudio.Text.BraceCompletion
程序集:  Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)

语法

声明
Public Interface IBraceCompletionContextProvider
public interface IBraceCompletionContextProvider
public interface class IBraceCompletionContextProvider
type IBraceCompletionContextProvider =  interface end
public interface IBraceCompletionContextProvider

IBraceCompletionContextProvider 类型公开以下成员。

方法

  名称 说明
公共方法 TryCreateContext 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))]

请参阅

参考

Microsoft.VisualStudio.Text.BraceCompletion 命名空间