Web Design that taps into the haromny and vision of your dreams.

Visual Studio Task List

Using the Visual Studio Task List to streamline productivity

Written By on in C#

246 words, estimated reading time 2 minutes.

Visual Studio contains a nice feature that is a Task List. This view is similar to the Output view but shows all the tasks associated with the project or solution.

Using Visual Studio Series
  1. Getting Started with Visual Studio
  2. Using the Visual Studio Integrated Development Environment
  3. Using the Visual Studio Debugger
  4. XML Documentation in Visual Studio
  5. Using Microsoft .Net Command Line Tools
  6. What is an Assembly in Microsoft .Net?
  7. Creating and Using a .NET Assembly in C#
  8. Creating and Implementing Satellite Assemblies
  9. Creating Strong Named Assemblies in Microsoft .Net
  10. Visual Studio Task List
  11. Resources and Localisation in C# Projects
  12. Localising Microsoft .Net Applications with C#
  13. Using Resource Files in C# Applications
  14. Using XSD Tool to Generate Classes from XML
  15. 10 Visual Studio Tools You May Not Know About

To view the task list select View menu then Task list (Ctrl+W, T). Tasks can be added with the "Create User Task" button and checked off when done.

Visual Studio Task List
Visual Studio Task List

The best feature for me, however, is its ability to automatically add and track TODO comments in your source code. When coding I often add a comment for things that need fixing or implementing in the future, the task list will pick up on these items so you can view them all and go directly to them.

using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
 
namespace ConsoleApplication1
{
  class Program
  {
    static void Main(string[] args)
    {
      myArrayList myList = new myArrayList();
      // TODO: Genereate these dynamically
      myList.Add("iulwrg");
      myList.Add("3847987");
 
      Console.WriteLine(myList.ToString());
    }
  }
 
  class myArrayList : System.Collections.ArrayList
  {
    public override string ToString()
    {
      //HACK: This is a messy way, but works for now. Make it better.
      string result = "";
 
      //UNDONE: Removed for testing
      //string[] theItems = (string[])base.ToArray(typeof(string));
 
      foreach (string item in theItems)
      {
        result += " " + item;
      }
      return result;
    }
  }
}

This code will be scanned by the task list view and will pick up on the comment tags TODO, HACK and UNDONE.

You can define your own tags from the options screen (Tools » Options » Environment » Task List »Task List Options and add a comment token with the appropriate priority). FIXME is my personal favourite.

Visual Studio Task List - Comment Tags
Visual Studio Task List - Comment Tags

Last updated on: Thursday 22nd June 2017

 

Comments
JP

JP

This will replace half of my one note list

Reply to JP

 

Leave a Reply

Your email address will not be published.





If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.

Copyright © 2001-2018 Tim Trott, all rights reserved. Web Design by Azulia Designs

This web page is licensed for your personal, private, non-commercial use only.

Disclaimer, Privacy & LegalSitemapContact Me