Page 1 of 1

Visual studio task list

Posted: Tue Sep 30, 2008 2:08 pm
by MarauderIIC
I found this like 2 minutes ago while work-working (as opposed to play-working, aka devving =) ) and thought someone might find it helpful. Visual Studio has a built-in 'Task List' that you can open by going to view > other windows > task list. Or, "ctrl+\, ctrl+T". You can keep a (super-basic, sort of inconvenient) todo under the "user tasks" category... not very helpful.

But! Under the "comments" category, it echoes all comments that start with a certain token from your code and double-clicking them takes you to them. In C++, it only works for the current file, I hear, but C# it works for the current solution.

You can change what tokens are recognized by going to tools > options > environment > task list, selecting a category, typing a token name, and hitting "add". Mine picks up 'TODO' (which it does by default), 'NOTE', and 'FIXME'. And since I do multilines of those by writing 'NOTE Cont' or 'TODO Cont', it works really nicely.

I'm using VS2008, and I know that it exists in VS 2005, and I'm assuming that you get to it in the same way. Versions before VS2005 have it built into the error list, I hear.

http://www.blackwasp.co.uk/TaskListComments.aspx
http://www.google.com/search?hl=en&q=vi ... h&aq=f&oq=

Re: Visual studio task list

Posted: Wed Oct 01, 2008 12:35 pm
by trufun202
Yeah, it comes in handy.

You can also use //HACK to denote portions of code that you're hacking for a quick fix, but intend to fix later.

Re: Visual studio task list

Posted: Wed Oct 01, 2008 12:42 pm
by Falco Girgis
Goddamnit. Now I feel even more motivated to upgrade to 2008. The last time that I tried to install, it told me that something wasn't found in a DLL, shit itself, and told me to reinstall. I have to fix that. =/

Re: Visual studio task list

Posted: Wed Oct 01, 2008 5:35 pm
by MarauderIIC
HACK isn't something I ever write, which is why I added FIXME =)

Look on the bright side, falco: if you get 2008 to install, we can share a project file :P

Re: Visual studio task list

Posted: Tue Nov 11, 2008 3:23 pm
by Slacker
Nice! Thanks for bringing that to my attention, my previous methods were less than stellar.

Re: Visual studio task list

Posted: Tue Nov 11, 2008 3:31 pm
by Trask
Oh? Nice, thanks for sharing that information!

Re: Visual studio task list

Posted: Tue Nov 11, 2008 8:37 pm
by eatcomics
GyroVorbis wrote:Goddamnit. Now I feel even more motivated to upgrade to 2008. The last time that I tried to install, it told me that something wasn't found in a DLL, shit itself, and told me to reinstall. I have to fix that. =/
I had this same problem actually... It only took a whole episode and a half of the office to download then it didn't work... I was sad :(