简体   繁体   English

在排除某些项目的同时,如何在解决方案中搜索文本?

[英]How to search for text within in a solution while excluding certain projects?

How do I find text in my Visual Studio solution while excluding certain projects? 排除某些项目的同时,如何在Visual Studio解决方案中查找文本? Preferably a macro within the text editor window itself and/or a setting somewhere. 优选地,文本编辑器窗口本身内的宏和/或某处的设置。

Example : I want to find every instance of the text "barcode" in my solution but I want to exclude looking at the "LotsOfBarcodes" project because I already know that text string exists there a lot. 示例 :我想在解决方案中找到文本“条形码”的每个实例,但是我想排除查看“ LotsOfBarcodes”项目的原因,因为我已经知道文本字符串存在很多。

I'm not sure if this is acceptable to you, but one option is to temporarily unload the project(s) that you don't want to search from your solution. 我不确定这是否可以接受,但是一种选择是暂时卸载您不想从解决方案中搜索的项目。 Follow that with a Look in: Entire Solution option in the Find and Replace dialog box. 在“ Find and Replace对话框中,使用“ Look in: Entire Solution选项进行处理。 Reload the projects when you are done. 完成后重新加载项目。

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

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