Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to access VS 2005 Todo list programatically?

Status
Not open for further replies.

shmilyca

Programmer
Apr 30, 2006
63
US
Any idea how to access VS 2005 Todo list programatically? Tutorial would be great help. Thank you
 
Writing an application that would read ToDo Items and produce report.
 
Err...

Go to: View -> Other Windows -> Task List
Then: View -> Show Tasks -> Comments

I do not think that writing a kind of that program will be useful. That's because the lists (TODO, HACK ...and custom *) are per project. But if you definately want to write an application for that.. it is easy:

- The app should ask for the solution's folder.
- Recursively, locate all .vb or .cs files (code files)
- Open each one (stream) and parse the lines that start with 'TODO'


I would not try it because i dont find it useful... as the program will look into the source files.

___________________
* To add custom tasks like FIX, URGENT and so on:
Tools -> Options -> Environment -> Task List



Hope I helped!
 
I know its not good idea..but thats what my company want me to do. Project is not yet finalised..hope fully it wont :)

I thought VS maintain ToDo database...I was thinking to access ToDo database.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top