Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

Managing TODOs in your source code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
probashi - 19 Mar 2008 22:08 GMT
Hi,

In my code I have TODOs all over the solution/projects (like the
following)

//TODO: Refactor to Factory Pattern
_service = new ServiceStub();

These are the target of my refactoring as the first cut is done (i.e.
all the tests are passed).

Is these any easy way to manage these TODOs?

I am relying on Ctrl+F now.

Thanks
Jeroen Mostert - 19 Mar 2008 22:15 GMT
> In my code I have TODOs all over the solution/projects (like the
> following)
[quoted text clipped - 6 lines]
>
> Is these any easy way to manage these TODOs?

Sure is. My friend, I direct your attention to Visual Studio's "Task List"
feature, who's very raison d'être is exactly keeping track of comments like
these, and which even comes preconfigured with a "TODO" tag.

View -> Task List. Switch it to "Comments", and there you go.

Signature

J.

probashi - 20 Mar 2008 16:06 GMT
> probashiwrote:
> > In my code I have TODOs all over the solution/projects (like the
[quoted text clipped - 16 lines]
> --
> J.

This is really cool man!

You can also create custom comment tokens!

Give me some more Secrets Man ..
Chris Nahr - 21 Mar 2008 08:38 GMT
>Sure is. My friend, I direct your attention to Visual Studio's "Task List"
>feature, who's very raison d'être is exactly keeping track of comments like
>these, and which even comes preconfigured with a "TODO" tag.
>
>View -> Task List. Switch it to "Comments", and there you go.

However, at least in VS2005 those nice task list entries are only
shown when the file containing the entry is currently opened in the
editor... if you want to know about TODOs in other files you still
need Ctrl+Shift+F, even if they are members of a project.
--
http://www.kynosarges.de
Michael D. Ober - 21 Mar 2008 12:57 GMT
>>Sure is. My friend, I direct your attention to Visual Studio's "Task List"
>>feature, who's very raison d'être is exactly keeping track of comments
[quoted text clipped - 9 lines]
> --
> http://www.kynosarges.de

I get TODOs (at least in VB 2005) in my task list regardless of whether the
file is open or not.  Even in multi-project solutions.

Mike.
Chris Nahr - 21 Mar 2008 13:09 GMT
>I get TODOs (at least in VB 2005) in my task list regardless of whether the
>file is open or not.  Even in multi-project solutions.

Must be a special VB feature then.  I just checked again, and VC#
definitely doesn't show comment TODOs unless the file is open.
--
http://www.kynosarges.de
BobF - 21 Mar 2008 14:03 GMT
>>I get TODOs (at least in VB 2005) in my task list regardless of whether
>>the
[quoted text clipped - 3 lines]
> definitely doesn't show comment TODOs unless the file is open.
> --

It is (was) the same with C++.  This is the reason I don't use it.

If there is a way to get tasks to show up for ALL files in a solution,
PLEASE share the secret!
BobF - 21 Mar 2008 14:28 GMT
>>>I get TODOs (at least in VB 2005) in my task list regardless of whether
>>>the
[quoted text clipped - 8 lines]
> If there is a way to get tasks to show up for ALL files in a solution,
> PLEASE share the secret!

When things like this that have annoyed me in the past come up, I sometimes
go exploring.

What I discovered this time is a work-around. (VS2005 - I don't know about
VS2008)

If you add Task List Shortcuts in the editor, these -will- show up for files
that aren't open.  So a way to do this is:

1.  Add a descriptive comment (optional)
2.  Add a Task List Shortcut to the line
3.  Choose 'Shortcuts' in the Task List category selector ((NOTE:  This
category won't be available until at least one Task List Shortcut exists in
the solution))

Task List Shortcuts for ALL files will be displayed in the Task List window,
along with whatever text is in the line with the shortcut whether it is
code, comment, or whitespace ...

It's too bad multiple steps are required to get this result, but it might be
worth it for some.
Chris Nahr - 22 Mar 2008 09:37 GMT
>If you add Task List Shortcuts in the editor, these -will- show up for files
>that aren't open.  So a way to do this is:

Wow, thanks for this tip!  I've been using VS2003 and VS2005 since
they were released and I've never even heard of task list shortcuts.
--
http://www.kynosarges.de

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.