Welcome to MSDN Blogs Sign in | Join | Help

Sara Ford's Weblog

My adventures embracing open source on CodePlex and at Microsoft

News

    • Did you know... All author proceeds go directly to sending Hurricane Katrina survivors to college.

      Microsoft Visual Studio Tips book

      Recent Entries

Did you know… you can create keyboard shortcuts to navigate among the various Task List categories? (View.NextTask and View.PreviousTask) - #179

Visual Studio comes with two commands for navigating among the various things in the task list:  View.NextTask and View.PreviousTask. 

As we've explored more than you ever wanted to know about the task list, you now know that the task list has several categories:  User Tasks, Comments, and Shortcuts.  These commands will only navigate among items of a given category, so you won't jump from shortcuts to user tasks.

Task List Categories Drop down

Note that these commands are not bound to a keyboard shortcut by default in the General Development Settings, so you'll need to bind them yourself (if using that profile).

View.NextTask command

  1. Go to Tools - Options - Environment - Keyboard, and in the Show Commands Containing edit box, type in the command View.NextTask
  2. Do a sanity check whether the settings you are using already have the command bound to a keyboard shortcut.  If it is, you'll see it in Shortcut currently used by read-only edit box.
  3. If not, in the Press Keyboard Shortcut edit box, type in your preferred shortcut, and press Assign.  If you only want this command to work in the editor (and not anywhere else in VS, use the "text editor" scope under the "Use new shortcut in" drop down)

Rinse and repeat for View.PreviousTask.  For me, I used Ctrl+Alt+N, only because it wasn't bound to anything in the General Development Settings.  For Previous, i highly recommend just adding the Shift key (these keys, shift, alt, ctrl, etc, are called something, and i cannot remember, argh) to whatever you come up with, since any backward navigation usually has "shift" in it. 

Status Bar Updates

Also, something else to note, since we had to test for it, is that the Visual Studio Status Bar will update with the name of the Comment when you use View.NextTask or View.PreviousTask. 

Technorati Tags: ,
Posted: Tuesday, March 25, 2008 3:00 AM by saraford

Comments

molotov said:

RE: "(these keys, shift, alt, ctrl, etc, are called something, and i cannot remember, argh)"

Modifiers? (http://msdn2.microsoft.com/en-us/library/system.windows.input.modifierkeys.aspx)

# March 25, 2008 8:18 AM

Carl Clark said:

Modifiers. Is that the word you're looking for?

# March 25, 2008 11:36 AM

Rob said:

I believe "modifiers" is in fact the correct term for these keys, as already stated by molotov and Carl Clark. Although I prefer the term "claw hand keys" =D

Thanks for the tips, enjoying the series, picked up several little bits already that have helped me work quicker =)

# March 25, 2008 1:51 PM

saraford said:

Ah yes, modifiers.  Thank you.  (breathes sigh of relief)  The closest i could get to in my head was "delimiters" but that obviously wasn't it.

# March 25, 2008 2:29 PM

Andy said:

Sara,

Sorry if this has been asked before. What would really be helpful is if I could see all TODO: items instead of per active file.

Thanks!

# March 25, 2008 5:22 PM

Bill Blum said:

Yes, Andy, that is one of my major gripes, too. It seems to defeat the purpose of the comments list to have to open each file in your project or solution to see if there's anything to do there.

I second the motion.

# March 28, 2008 12:54 AM

ASPInsiders said:

Here is the latest in my link-listing series .  Also check out my ASP.NET Tips, Tricks and Tutorials

# March 28, 2008 4:28 AM

xjb said:

# December 29, 2008 12:50 AM
New Comments to this post are disabled
Page view tracker