visual-studio 用于搜索 VS 项目以查找字符串的实用程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 
原文地址: http://stackoverflow.com/questions/1071672/
Warning: these are provided under cc-by-sa 4.0 license.  You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Utility to search through VS projects looking for string
提问by DenaliHardtail
Can anone recommend a tool for searching my visual studio projects folders to find a specific string value?
谁能推荐一个工具来搜索我的 Visual Studio 项目文件夹以查找特定的字符串值?
I have many solutions / projects stored in either the d:\VS2005 or the d:\VS2008 folder depending on the VS version used to create the project. I'm looking for a string and do not have the foggiest idea which project or solution it is in. Any suggestions?
根据用于创建项目的 VS 版本,我将许多解决方案/项目存储在 d:\VS2005 或 d:\VS2008 文件夹中。我正在寻找一个字符串,但不知道它在哪个项目或解决方案中。有什么建议吗?
回答by i_am_jorf
CTRL+SHIFT+Fand change Look-in to be c:\path\to\your\code.
CTRL+ SHIFT+F和变化看,在要c:\path\to\your\code。
Edit: Or, from the command line in the root of where you want to search:
编辑:或者,从您要搜索的根目录中的命令行:
d:\> findstr /spin /c:"STRING-YOU-ARE-LOOKING-FOR" *.*
Or *.cc or *.h or whatever you want to look through.
或 *.cc 或 *.h 或任何您想查看的内容。
回答by RichieHindle
Entrian Source Searchis a Visual Studio add-in that does exactly this. (Full disclosure: I'm the author.)
Entrian Source Search是一个 Visual Studio 加载项,它完全可以做到这一点。(完全披露:我是作者。)
回答by zhrist
Since "Visual Studio 2010" version Edit.FindinFiles:
自“Visual Studio 2010”版本 Edit.FindinFiles:
Displays the In Files tab of the Find and Replace dialog box.
显示“查找和替换”对话框的“在文件中”选项卡。
This is the most handy search as it can search through project, solution and similar combination with reference or without. Keyboard shortcut is : CTRL+SHIFT+F
这是最方便的搜索,因为它可以在有或没有参考的情况下搜索项目、解决方案和类似的组合。键盘快捷键是:CTRL+SHIFT+F
More on MS designers, shares and editors
更多关于MS 设计师、分享和编辑的信息

