这是该网站的一个引用(我希望你正在谈论)
Walkthrough: Displaying Statement Completion
实现完成命令处理程序提供程序
-
添加名为的文件
测试完成命令处理程序
.
-
添加名为的类
测试完成处理程序提供程序
实现
IVsTextViewCreationListener
.
实现完成命令处理程序
实现完成命令处理程序
-
添加名为的类
测试完成命令处理程序
实现
IOleCommandTarget
:
说明很清楚,你应该以
一个文件
命名
测试完成命令处理程序.cs
包含
两个班级
[Export(typeof(IVsTextViewCreationListener))]
[Name("token completion handler")]
[ContentType("plaintext")]
[TextViewRole(PredefinedTextViewRoles.Editable)]
internal class TestCompletionHandlerProvider : IVsTextViewCreationListener
{
// implementation
}
internal class TestCompletionCommandHandler : IOleCommandTarget
{
// implementation
}