简体   繁体   English

扩展视觉工作室

[英]Extending visual studio

I want to write an AddIn for visual studio (2010). 我想为visual studio(2010)写一个AddIn。 My goal is to add a menuitem to the context menu of all .cs files in the solution explorer. 我的目标是在解决方案资源管理器中的所有.cs文件的上下文菜单中添加一个menuitem。 Or maybe just to context menu of the code window, although I prefer the first thing. 或者也许只是代码窗口的上下文菜单,虽然我更喜欢第一件事。 I've been browsing around on the Visual Studio Extensibility website but I must admit that I'm having a hard time finding a tutorial on how to achieve what I want to. 我一直在Visual Studio Extensibility网站上浏览,但我必须承认,我很难找到如何实现我想要的教程。 I guess that I don't really understand the VS extensibility model to be honest. 我想我并不是真的理解VS可扩展性模型。

So I thought that some of the smart people here must have tried it before, and I'm hoping to save some time by asking here instead of fumbling in the dark. 所以我认为这里的一些聪明人必须先尝试过,我希望通过在这里问一下,而不是在黑暗中摸索来节省一些时间。

Thanks in advance for any help. 在此先感谢您的帮助。

I have a blog post on something pretty similar at http://www.runeibsen.dk/?p=237 . 我在http://www.runeibsen.dk/?p=237上有一篇关于非常相似的博客文章。 Unfortunately, it is for VS2008 and AFAIK VS2010 is all WPF based now, in which case you may not be able to use it. 不幸的是,它适用于VS2008和AFAIK VS2010现在都是WPF,在这种情况下你可能无法使用它。

Checkout the codeproject Article-- LineCounterAddin , its a good one. 检查代码项目文章 - LineCounterAddin ,它是一个很好的。 Explaining the VS IDE internals needed to code Addins. 解释编写Addins所需的VS IDE内部。

And quick googling shows this one Add-In That Converts C# Code To Visual Basic 快速的谷歌搜索显示这一个将C#代码转换为Visual Basic的加载项

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

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