Create Code Shortcuts in the Task List
Keyboard: CTRL + K, CTRL + H [toggles the shortcut on or off]
Menu: Edit -> Bookmarks -> Add Task List Shortcut
Command: Edit.ToggleTaskListShortcut
Versions: 2008,2010
Published: 6/8/2010
Code: vstipTool0030
You can create shortcuts to lines of code that you want to revisit later. It's easy! Just go to any line of code then press CTRL + K, CTRL + H (toggles the shortcut on or off). This will create the shortcut glyph in the Margin like this:
To see all your shortcuts, go to the Task List (CTRL + \, T) and choose "Shortcuts" from the drop-down list:
Now you should see all your shortcuts:
You can now treat them like any other task and set priority levels as well as mark them complete:
NOTE: You can RIGHT CLICK any task and choose "Delete" to remove it from the list.
Comments
Anonymous
June 07, 2010
Thank you very much for these Task List tips. Great blog you have here.Anonymous
June 08, 2010
Sort of strange for VS to support both shortcuts and bookmarks. It'd be interesting to know why there are two different solutions to what seems like essentially the same user story. I think I like the flexibility of shortcuts better, though bookmarks are more pronounced in the UI.Anonymous
June 08, 2010
I completely agree with TRBesser. I immediately thought, isn't this what bookmarks are for?Anonymous
June 08, 2010
Good points! The only thing I can think of is the shorcuts are part of a "one stop shop" in the Task List whereas Bookmarks are in a window all by themsleves. I haven't confirmed this with the team but that would be my guess. ZAnonymous
June 10, 2010
The funny thing is that I often find myself using Breakpoints for this very purpose! They're quicker to set in the margin, can be navigated to through the Breakpoints window just like Bookmarks and Shortcuts, and the red lines provide a better visual for locating points in code while scrolling.Anonymous
June 12, 2010
for some reason 'comments' are not working for me, ie the list remain empty. the language is pure C++ - maybe this is the reason?Anonymous
February 01, 2011
Same for me. Its not working. the list just stays empty. I'm using VS 2005, with Visual Assist X and TabStudio. May be either of those plug-ins is breaking it?Anonymous
February 01, 2011
Dmitry -- shortcuts show up in the shortcut area not comments. Is that the casue? Martin -- same question are you switching to the shortcuts section? (see step two above)Anonymous
January 17, 2013
When I do a build, all my user tasks and code shortcuts are DELETED! This happens in both VS 2010 and VS2012. Anyone have an idea of where I can even start to find out what the heck is going on?Anonymous
January 17, 2013
That's strange. I haven't seen this issue before. There is no connection between build and these items. If they ate disappearing I would think something funky is happening with the .SUO file.Anonymous
December 11, 2013
I get the same issue as Monte_Christo