2011-02-16 124 views
2

我使用ReSharper的,而現在,我發現它有時會添加奉勸你的代碼,例如這樣的:ReSharper的像語法高亮

enter image description here

我正在寫一個Visual Studio插件我想在那裏做同樣的事情。 任何人都可以指向正確的方向嗎?

+0

你可以用新的規則和插件擴展ReSharper的。這在你的情況下會有意義嗎? – asgerhallas 2011-02-16 14:05:36

+0

我會在哪裏得到Resharper的DLL?我只知道我已經將它安裝到Visual Studio中作爲插件。 我發現ReSharper的PowerToys的,但一旦我在Visual Studio中打開它(作爲一個解決方案文件),我在想念JetBrains的命名空間。 – Robin 2011-02-16 14:14:59

回答

1

哈迪·哈里里寫了一些很好的介紹來擴展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/

入門無線日寫插件哈迪介紹,從ReSharper的參考下面的dll的安裝目錄:

references for creating the plugin

併爲獲得進一步檢出源ReSharper的PowerToys的:

http://resharperpowertoys.codeplex.com/

記住,有一些如何在Resharper版本之間實現插件的差異。