Reputation: 33673
I'm using Visual Studio 2010. I'm in a project, in the solution explorer, in the fr
directory (as opposed to en directory for english). I want to find all instances of the string ~/en/
and replace them with ~/fr/
.
When I use VS's "Find and Replace" feature, the "Look In" drop down only offers Entire Solution and Current Project. It would be nice if it had a "Look in: Specify Folder" option. How do I achieve this?
Upvotes: 3
Views: 6719
Reputation:
Simple, Download the tool "Open All Documents in Folder" from visual studio tools... then open all documents with one click. Then, By using Search and replace or Multiple line search and replace tool you can change by selecting : all opened documents...
Upvotes: 0
Reputation: 31
Find and Replace (Ctrl+Shift+F) and in Look in: select "..." sign to carefully select particular project folder from directory structure.
Upvotes: 0
Reputation: 6884
All you need to do is to click on Find and Replace in the Edit toolbar of Visual Studio. Then you need to select Replace in Files.
According to where you need to make the change, you can select one of the below:
Upvotes: 0
Reputation: 31
In the "Find and Replace" dialog select "Replace in Files" option from the menu bar, instead of the default option which is "Quick Replace"
Upvotes: 2
Reputation: 33673
This is pathetic, but what I ended up doing was creating a new VS project. Then I copied the fr directory from the previous project into the new VS Project. Used a Quick Replace on Entire Solution. Then I copied the fr folder back into my previous project.
This is a bad work around...but it works. I hope someone can offer a better solution.
Upvotes: 0
Reputation: 1931
You've got it. "Find and Replace" (Ctrl+Shift+F), instead of clicking Entire Solution, click the ellipsis (...) on the right hand side of this dropdown. You can select any directory/path.
Upvotes: 5