How to handle TODO comments in VisualStudio 2010?

I would like Visual Studio to display all lines that have “TODO:” at the beginning (usually after the comment sign, which may vary depending on the file type), which can be found in any text file in the solution (regardless of whether it is C #, VB, F #, T-SQL, ASPX, XAML or just TXT) on a special panel that shows what is written in the line to the right of the TODO name: project name (I use many projects in one solution) file name, line number and name of the code block (for example, class and method), if possible.

Do you know about such an extension, or perhaps VisualStudio has a built-in function? For example, NetBeans has this ready-made option.

+6
comments visual-studio visual-studio-2010 todo
source share
3 answers

it seems here, for example, with how comments should be marked: http://jack-fx.com/net/2010/01/23/todo-comments-in-visual-studio/

+2
source share

This is how I use TODO in VS as a bad tracker for people. It is supposed that all my decisions are stored in any folder, let me name it "My projects".

  • Open Find and Replace. Enter the code name in My Projects.
  • In // Find, add // TODO (or // BUG or another custom tag)
  • In "Look In", enter the code name created in # 1
  • In "File Types" leave only * .cs files (or where comments are stored)
  • Finally, in the list results, select "Find Results 2 Windows" (in VS Pro or higher, n / a in VS Express)

Simply put, it performs a full text search and displays the lines with TODO in the "Find Results 2" window. All you have to do is copy the list and open it in your favorite text editor.

+2
source share
0
source share

All Articles