繁体   English   中英

像语法突出显示的锐减器

[英]Resharper like syntax highlighting

我已经使用resharper一段时间了,我注意到它有时会为您的代码添加建议,例如:

在此处输入图片说明

我正在编写一个Visual Studio插件,我想做同样的事情。 有人能指出我正确的方向吗?

哈迪·哈里里(Hadi Hariri)写了一些很好的介绍,以通过插件扩展Resharper:

http://hadihariri.com/2010/01/12/writing-plug-ins-for-resharper-part-1-of-undefined/

http://hadihariri.com/2010/07/20/writing-plug-ins-for-resharper-part-2-of-n/

...或具有Resharper 5中的新自定义模式匹配功能。

http://hadihariri.com/2010/08/19/highlighting-custom-patterns-with-resharper/

为了开始编写Hadi描述的插件,请从Resharper安装目录中引用以下dll:

创建插件的参考

为了得到进一步的检验,Resharper PowerToys源:

http://resharperpowertoys.codeplex.com/

请注意,Resharper版本之间在实现插件方面存在一些差异。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM