Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio - How to search in pending changes files?

I've made plenty of changes in my solution, using TFS, and I want to search for something only in the files which I edited (which appear in the "Pending Changes").

There is only an option to search in specific directories of the solution but not in the edited files.

Maybe there is some extension that can help with it?

For example, I want to search for TODO comments but only in the files edited by me, without seeing TODOs of other developers.

like image 548
SeReGa Avatar asked Dec 22 '18 19:12

SeReGa


People also ask

How do I view pending changes in Visual Studio?

Visual Studio 2019 | Visual Studio 2022 In Visual Studio Team Explorer, open the Pending Changes page to check in your code to a new changeset, or press Ctrl+O, P on your keyboard. You can select the undock icon to undock the Pending Changes page from Team Explorer and show it in a separate window.

How do I see changes in Visual Studio?

In Microsoft Visual Studio, click Tools > Options. Go to Source Control > Jazz Source Control > Check-in Policies. Select the Auto check-in local changes check box and click OK.


2 Answers

Press ctrl + shift + f In Result options, select Find results Table

enter image description here

Press find all and then, in the find window filter by select Changed Documents. enter image description here

like image 98
Guy Frieman Avatar answered Nov 09 '22 20:11

Guy Frieman


This is not the answer for searching in pending changes in general, but it is possible to get list of TODOS only from changed files by using Task list window.

Open Task list window and use the filter for only Changed documents: Task list windows showcase

like image 39
Simply007 Avatar answered Nov 09 '22 18:11

Simply007