在VisualStudio 2010 下有一个TaskList窗口,利用好它可以为我们开发提供很多便利。

Tasklist2_5F00_2png

     如上图一样打开。

TaskList1_5F001

   在选项中我们看到它的Tokens 有HACK,TODO,UNDONE….最常用的是TODO,我们也可以点击创建一个新的TASK:

TaskList3

例如我有这样的代码,注意代码中TODO注释:

   1:  using System;
   2:  using System.Collections.Generic;
   3:  using System.Linq;
   4:  using System.Web;
   5:  using System.Web.UI;
   6:  using System.Web.UI.WebControls;
   7:   
   8:  namespace Blogging
   9:  {
  10:      public partial class _Default : System.Web.UI.Page
  11:      {
  12:          protected void Page_Load(object sender, EventArgs e)
  13:          {
  14:   
  15:          }
  16:          public void DoSomething()
  17:          { 
  18:              //TODO : I have to write code for do something
  19:          }
  20:   
  21:          public void DoAnotherThing()
  22:          { 
  23:              //TODO : I have also wirte code for Do another thing.
  24:          }
  25:      }
  26:  }

这时您将看到Task List下有这两个TODO:

Tasklist4_4

希望这篇POST对您开发有帮助!


作者:Petter Liu
出处:http://www.cnblogs.com/wintersun/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
该文章也同时发布在我的独立博客中-Petter Liu Blog

posted on 2011-06-04 17:12  PetterLiu  阅读(914)  评论(2编辑  收藏  举报