VS2010 SDK - 将显示项添加到字体和颜色选项对话框
我正在尝试将自定义显示项目添加到“字体和颜色”对话框中。我可以使用 IVsFontAndColorStorage 成功保存和检索颜色 服务,但项目未出现在显示项目列表中。我尝试关注此博客帖子 关于添加自定义类别。我的类别出现了,但仅包含默认显示项目。我的真正目标是将我的自定义颜色添加到“文本编辑器”类别中。 ReSharper 也做了类似的事情。
有人有过这方面的经验吗?那里有一个很好的教程吗?
I'm trying to add custom Display Items to the Fonts and Colors dialog. I can successfully save and retrieve colors using the IVsFontAndColorStorage service but the items do not appear in the list of Display Items. I have tried following this blog post about adding a custom category. My category appeared but only with the default display items. My real goal is to add my custom colors to the "Text Editor" category. ReSharper does a similar thing.
Have anyone had experience with this? Is there a nice tutorial out there?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我最终走了一条不同的路。此线程详细介绍了如何完成它:http://social.msdn.microsoft.com/Forums/en-US/vseditor/thread/ed463657-6a36-4e33-b313-b2923cc81a74
I eventually went a different route. This thread has the details on how to accomplish it: http://social.msdn.microsoft.com/Forums/en-US/vseditor/thread/ed463657-6a36-4e33-b313-b2923cc81a74
我正在编写一个编辑器扩展并想知道同样的事情。它就像使用 UserVisible(true) 装饰您想要显示的属性一样简单。请参阅此线程以获取更多信息。
http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/cef23a9e-db87-4683-a4be-d18561e8bded
I'm writing an Editor Extension and wondered the same thing. It as easy as decorating the attributes you want to appear with UserVisible(true). See this thread for more information.
http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/cef23a9e-db87-4683-a4be-d18561e8bded