Wednesday, June 24, 2015

Some title to ignore

Still trying to figure this whole posting thing out.
If I post something how can I make a reference to a static page for further information?  Or more importantly to a section of a static page?
Go to the second part of the page

Thursday, January 22, 2015

Using Task Shortcuts to keep track of code

Using Task Shortcuts to keep track of code

Reference:  MSDN: Using the Task List

The Basics

Bookmarks are OK for some things, but there is not an easy way to know what exactly a bookmark points too.  A better way is to use the "Task List Shortcuts" which will display the text of the line of code they are on in the "Task List" window.

First make sure your Task List window is open.
View-Task List (Ctrl+W, T)

Now create a Task List Shortcut by placing the cursor on a line you want to be able to jump too, then choose Edit-Bookmarks-Add Task List Shortcut (Ctrl+E, T)

In the Task List window you opened earlier you will need to click the drop-down at the top and click on "Shortcuts".

Now you should see the line of code that you had marked as a shortcut earlier.

More about Tasks

When you first start a project the Task List window will only show an entry in the drop down to display "User Tasks".  This can be used to organize what steps need to be done to complete a project.  This include a check-box for completion and the ability to prioritize tasks.  All pretty self-explanatory.

But there are other cool ways you can leverage this window.  As you are typing your code you may think of something that needs to be added at a later time, but you don't want to tackle it now.  If you create a comment with the keyword "TODO" at the beginning, the Task List drop-down will add a section called TODO and will list all of the To Do's you have typed in.  You can double click it to navigate to that place in the code.

There are actually three built in tokens you can leverage by default:


  • HACK   Indicates a workaround.
  • TODO   Indicates something to be done.
  • UNDONE   Indicates a reversal or "roll back" of previously changed or updated code.

But Wait There's More !

You can also create your own custom tokens to track and navigate code.

Tools-Options
Environment section - Task List
Add the name of the Token you want to create, choose a default priority and click Add.

Now the Task List window will have a section for your custom tokens.