扩展视觉工作室

发布于 2024-08-21 19:55:16 字数 352 浏览 5 评论 0原文

我想为 Visual Studio (2010) 编写一个插件。我的目标是将菜单项添加到解决方案资源管理器中所有 .cs 文件的上下文菜单中。或者也许只是代码窗口的上下文菜单,尽管我更喜欢第一件事。我一直在 Visual Studio 扩展性网站 上浏览,但我必须承认,我很难找到有关如何实现我想要的目标的教程。说实话,我想我并不太理解 VS 可扩展性模型。

所以我想这里的一些聪明人一定已经尝试过,我希望通过在这里询问而不是在黑暗中摸索来节省一些时间。

预先感谢您的任何帮助。

I want to write an AddIn for visual studio (2010). My goal is to add a menuitem to the context menu of all .cs files in the solution explorer. 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. I guess that I don't really understand the VS extensibility model to be honest.

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

猛虎独行 2024-08-28 19:55:16

我在 http://www.runeibsen.dk/?p= 上有一篇关于类似内容的博客文章237.。不幸的是,它是针对 VS2008 的,据我所知 VS2010 现在都是基于 WPF 的,在这种情况下你可能无法使用它。

I have a blog post on something pretty similar at 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.

无言温柔 2024-08-28 19:55:16

查看 codeproject 文章 -- LineCounterAddin,这是一篇不错的文章。解释编写 Addins 所需的 VS IDE 内部结构。

快速谷歌搜索显示了这个将 C# 代码转换为 Visual Basic 的加载项

Checkout the codeproject Article-- LineCounterAddin, its a good one. Explaining the VS IDE internals needed to code Addins.

And quick googling shows this one Add-In That Converts C# Code To Visual Basic

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文