简体   繁体   中英

Visual Studio, find/replace text within all files inside a certain Filter (of Solution Explorer)

After searching about 1 month, I still don't find how to do it.

I am using Visual Studio 2015, and create a lot of filter in Solution Explorer.

  • All of my .cpp and .h, are in the same Windows folder, but in different Visual Studio's filter.

I want to replace all words of all files within a certain filter

  • eg replace all occurrences of "CustomArray()" by "CA".

I don't want that action to take effect on the whole project.

I tried :-

Edit > find in file

But I didn't find any option to limit the affect to only a certain filter.

Is there any way to achieve it?

Edit

I want it to affect all files inside a FILTER.

I don't want a solution that affect all files inside the WINDOW folder.

Example

The whole project consists of files f1.h, f2.h, and f3.h.

They are all inside C:/Fs (without subdirectory), but only f1.h & f2.h are inside a a_filter_name FILTER.

I want a one-pop-up solution of "replace all" that affect only f1.h & f2.h.

关闭所有文件,然后从过滤器中打开所有文件(使用Shift + Click选择所有文件,就像在Windows资源管理器中一样,然后按Enter键),然后在搜索表单中使用“所有打开的文档”选项。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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