Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.
ASP.NET: Using a task list
From Wiki
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:
- Private Function DoSomething() As String
- ' TODO - we need to do something here
- 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



LTD Social Sitings
Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.