Visual Studio 插件,用于在解决方案中快速搜索文件

发布于 2024-07-07 21:59:13 字数 196 浏览 15 评论 0原文

我想编写一个 Visual Studio 插件,提供对解决方案资源管理器的即时搜索。 因此,您按下组合键,然后在键入时首先包含解决方案资源管理器的所有文件的列表会缩小范围。

但是如何使用 C# 访问解决方案资源管理器? 有人有好的资源吗?


编辑:我编辑了标题,以便它与内容更相关,因为你们所有人都发布了已经制作的插件。

I want to write an Add-In for Visual Studio that provides instant search for the solution explorer. So you press a key combination and while you are typing a list first containing all files of the solution explorer gets narrowed down.

But how can I get access to the solution explorer using C#? Does anyone have some good resources?


Edit: I edited the title, so that it more relates to the content, since all of you posted already made plug-ins.

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

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

发布评论

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

评论(6

木格 2024-07-14 21:59:13

Sonic File Finder 它是免费的

当您点击快捷方式时,您会看到一个带有自动完成功能的搜索框:
替代文本 http://jens-schaller.de/files/images/SonicFileFinder/sonicFileFinderToolWindow .png

Sonic File Finder it's free

When you hit the shortcut you have a search box with autocomplete:
alt text http://jens-schaller.de/files/images/SonicFileFinder/sonicFileFinderToolWindow.png

十雾 2024-07-14 21:59:13

Visual Studio 已经完全有能力做到这一点; 只需将“Edit.GoToFindCombo”拖到工具栏上(如果它尚不存在)。 (如果是,请按 Ctrl+D 激活)并为所有以字母 's' 开头的文件键入“>of s”。

示例带有“打开”命令的 GoToFindCombo
(来源:aaronlerch.com

GoToFindCombo 比这更强大,您可以为 Visual Studio 中的几乎每个命令设置别名“>alias $aliasHere $SomeCommand”。 例如,要为文件中的查找创建别名,请键入“>alias ff Edit.FindinFiles”

Visual Studio is already perfectly capable of doing that; just drag the "Edit.GoToFindCombo" to the toolbar, if it's not already there. (Press Ctrl+D if it is, to activate) and type ">of s" for all files starting with the letter 's'.

Example of the GoToFindCombo with the 'open' command
(source: aaronlerch.com)

The GoToFindCombo is more powerful than this though, you can set aliases ">alias $aliasHere $SomeCommand" for virtually every command in Visual Studio. For example, to make an alias for find in files you type ">alias ff Edit.FindinFiles"

[浮城] 2024-07-14 21:59:13

为什么要重新发明轮子? DevExpress 和 Microsoft 联手在 PDC2008 上免费提供 CodeRush Express,做到了这一点如果我理解正确的话。

AFAIR 我认为跳转到文件的魔术键组合是 Ctrl+Alt+F 并且它也进行子字符串匹配。 我尝试过,它对我有用。 相当漂亮。 这是录音的链接,以防我搞砸了实际的击键......一些其中的提示非常好。

更新:写了为那些时间不够的人准备的博客文章

Why re-invent the wheel? DevExpress + Microsoft tied up to offer CodeRush Express for free @ PDC2008 that does just that if I understand you correctly.

AFAIR I think the magic key combo for Jump to File is Ctrl+Alt+F and it does substring matches too. I tried it and it worked for me. Pretty nifty. Here's the link to a recording in case I goofed up on the actual keystroke... some really nice tips in it.

Update: Wrote a blog post for those who're short of time.

染年凉城似染瑾 2024-07-14 21:59:13

DPack 确实击败了所有这些(而且它是免费的)。
查看 Alt+U 和 Alt+M 快捷键(我也推荐其他快捷键)。

此外,如果您想跳转到另一个文件中的特定点(类型成员)(确实非常快),我发现 StudioTools 具有非常令人印象深刻的 GoTo 功能。

注意:R# 也有这样的功能,但 IMO 它比 DPack 的版本弱。

DPack really beats all of them (and moreover it's FREE).
Check out the Alt+U and Alt+M shortcuts (also I recommend others too).

Additionally I have found StudioTools to have very impressive GoTo feature if you want to jump to specific point (type member) in another file (really very fast).

NOTE: R# also has such feature but IMO it's weaker than DPack's version.

素染倾城色 2024-07-14 21:59:13

没有什么比 Microsoft 的免费生产力工具更好的了。

http://visualstudiogallery.msdn.microsoft.com/3a96a4dc-ba9c-4589 -92c5-640e07332afd

Nothing Beats Productivity Tools by Microsoft and its free.

http://visualstudiogallery.msdn.microsoft.com/3a96a4dc-ba9c-4589-92c5-640e07332afd

待"谢繁草 2024-07-14 21:59:13

不要忘记 Workspace Whiz - 它免费供非商业用途。 没有它我就活不下去,所以才买了一个许可证。 它还可以做很多其他事情...

替代文字
(来源:workspacewhiz.com

Don't forget Workspace Whiz - it's free for non-commercial use. I can't live without it and just bought a licence. It does many other things too...

alt text
(source: workspacewhiz.com)

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