javaLover
javaLover

Reputation: 6415

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.

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

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.

Upvotes: 0

Views: 130

Answers (1)

Dialecticus
Dialecticus

Reputation: 16761

Close all files, then open all files from the filter (select all of them with Shift+Click, like in Windows Explorer, and press Enter), then in search form use the option "All Open Documents".

Upvotes: 1

Related Questions