is there a way to force Visual Studio 2010 to show pending changes only for the currently opened solution? I am working on multiple branches of the same project and changing the same files in most of the branches. It's so painful to check the pending changes by hand every time and double-checking if I've selected the files that I am currently working on...

- 347,512
- 102
- 1,199
- 985

- 653
- 1
- 9
- 21
-
1Anybody have an idea on how to do this for Visual Studio 2012? – Animesh Aug 05 '13 at 12:19
-
1Found solution for TFS 2012 here: http://stackoverflow.com/q/17090976/ – Animesh Aug 05 '13 at 12:21
5 Answers
Open the pending changes window. You can find there a toolbar button that filters on the current solution.

- 12,688
- 3
- 39
- 44
Yes, on the pending changes view one of the last icons along the top is a "filter by solution" (next to the refresh icon). Click that to reduce the change list to the current solution.
You can see a screenshot of it here

- 1,859
- 1
- 19
- 21
-
I don't know about other people, but on 2010 Professional, the "filter by solution" button isn't there. – Hank Schultz Jan 04 '13 at 13:45
-
@HankSchultz: It was added in 2005: http://blogs.msdn.com/b/buckh/archive/2005/12/08/filterbysolution.aspx – Edward Thomson Jan 04 '13 at 17:40
I see the other answers are quite old.
In 2015 you can do it like this: click on the VisualSVN menu item and then on "Set Working Copy Root..." Then you can browse to the solution folder on disk.

- 2,365
- 2
- 23
- 29
If you bring up the pending changes window. One of the icons is for folder view. This should help with narrowing the changes to a specified directory. (though you will need to deselect the others)
OR
There is one option I just remembered for selecting those items. If you open your visual studio command prompt you can use the team foundation tools to auto filter by doing the following.
Example project structure
src
/Dev
/Branch1
/Branch2
You can cd into the src directory and use the following command to filter your pending checkins to Branch1
tf checkin Branch1 /recursive

- 853
- 5
- 10