Jack @ ASP.NET

As a software engineer, I focus on .NET, especially asp.net, C#, WCF and so on, and I am also very interested in Search Engine Optimization.

Entries Tagged ‘Visual Studio’

TODO Comments in Visual Studio

Using TODO

imageTODO comments allow you to tell Visual Studio to maintain a central list of tasks, which it reads from many different places in your code. The Task List is a panel or floating window in Visual Studio that will display all the TODO comments in your project. To open the list, go to View menu -> Task List.

Some example TODO comments

You probably have a lot of code that needs a lot of work. If you don’t, then you need to write code that needs a lot of work. Here are some examples of TODO lines that Visual Studio 2008 will notice and put into its special Task Pane.

//todo: your task 1
//TODO: your task 2
// Todo your task 3

Description of example. This will appear in your tasks pane as a separate task. Note that you have some flexibility with these tokens. The strings "todo", "TODO", and "TODO" all work equally well—Visual Studio’s parser gives you a little bit of freedom.

  • Digg
  • DZone
  • Yahoo Buzz
  • Delicious
  • Reddit
  • StumbleUpon
  • SmakNews
  • Jumptags
  • Ping
  • Share/Bookmark

Activate items in visual studio toolbox

You might meet these questions in visual studio toolbox, and the items are not shown properly:

  • My code works if Visual Studio is already opened when my code executes.
  • My code works fine when executed outside of an installation project. 
  • If my code is executed from an installation project and Visual Studio is not opened, then ToolBox item is not added. I’ve added a "MessageBox" during the process and I can confirm that devenv.exe *is* executed. 

 

If you have any trouble using the toolbox items in visual studio, just delete the hidden files:

toolbox.tbd, toolbox_reset.tbd, toolboxIndex.tbd, toolboxIndex_reset.tbd

in

<drive>:\Documents and Settings\<user>\Local Settings\Application Data\Microsoft\VisualStudio\<VS version>

Ex:

C:\Documents and Settings\JAVIER.VILLARREAL\Local Settings\Application Data\Microsoft\VisualStudio\8.0

Start Visual Studio, and it will reset the toolbox items in the correct form. following this, you can active items in visual studio toolbox immediately.

  • Digg
  • DZone
  • Yahoo Buzz
  • Delicious
  • Reddit
  • StumbleUpon
  • SmakNews
  • Jumptags
  • Ping
  • Share/Bookmark