Login or Sign Up to become a member!

EXPERTS, INFORMATION, IDEAS & KNOWLEDGE

Social bookmarker Add this

ASP.NET: Using a task list

From Wiki

Jump to: navigation, search

Summary: Using a task list

Visual Studio has a great feature that allows you to build up and view a list of comments that you add to your code. Let's say you have a function that needs some work doing to it:

  1. Private Function DoSomething() As String
  2.     ' TODO - we need to do something here
  3. End Function

Now, as we've used the "TODO" keyword in our comment, this means that Visual Studio will recognise it and and add it to a list for us. If you click View -> Task List in the menu, the Task List will be opened up at the bottom of your screen. Now, change the DropDownList in the Task List to "Comments" if this isn't already selected. You'll notice that you now have your comment listed in the task list and double clicking it will highlight the line! This makes it very easy for us to manage our development and can quickly highlight what we have left to do.

We can also extend this functionality and use our own custom keywords instead of just TODO. Go to Tools -> Options -> Environment -> Task List and you will be presented with a list of existing keywords (you may have to check the "Show all settings" checkbox at the bottom of this screen if you do not have all of these options). You can simply add your own to the list and they will appear in the task list for you.


This Hack is part of the ASP.NET Hacks collection

494 Rating: 3.0/5 (5 votes cast)