Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show TODO tasks only for pending changes in Visual Studio

The Task List in Visual Studio 2010 will show all the TODO comments in a solution, but is there some way to filter it to only show TODOs for files with pending changes or for files that are open? In other words, I don't want to see everyone else's TODOs, only the TODOs in my changeset. If it isn't built in, is there a plug-in that you like that can do that?

like image 414
Robert Corvus Avatar asked Sep 14 '12 15:09

Robert Corvus


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 show a todo in Visual Studio?

From within Visual Studio Go to View -> Task List. This will display the Task List window and show you any area of your open Solution that has existing comments that start with // TODO . You can filter down to your Current Project, Current Document, or Open Documents.

How do I remove pending changes in VS code?

In Solution Explorer, the Pending Changes Window, or Source Control Explorer, select one or more items, open their context menu and choose Undo or Undo Pending Changes. To undo all changes you have made in your solution or a code project, open the context menu, and then choose Undo Pending Change.

How do I create a pending add in Visual Studio?

You can open the Pending Changes window by right-clicking the Visual Studio project or solution file and then choosing "Git (master)" followed by "Pending Changes". Again, just like before, select the files you want to include, add a meaningful comment and commit them.


1 Answers

Task List window lists all comments what contains TODO keyword. Also there are two default keywords; HACK and UNDONE. VS doesn't allow to change or delete TODO keyword but allows add new keywords. If you add a special keyword (like RoToDo) into Token List (it located in Tools/Options/Enviroment/Task List) and use this keyword in your comments like "//RoToDo comment here", Task List window will show these comments too. Finally; you can use Task List window's sorting property for gathering your special comments.

RoToDo comment here1
RoToDo comment here2
RoToDo comment here3
RoToDo comment here4
todo : comment here1
todo : comment here2
todo : comment here3

like image 61
Furkan Ekinci Avatar answered Oct 21 '22 10:10

Furkan Ekinci