An online resource dedicated to evangelizing XNA to the Greater Boston area. Primary focus is on the XNA Framework and XNA Game Studio.

Navigating and key re-mapping in Visual Studio

Latest post 08-27-2008 8:38 PM by cbowen. 1 replies.
  • 08-27-2008 7:58 PM

    Navigating and key re-mapping in Visual Studio

    As discussed in the meeting tonight, Visual studio allows you to move back to where you had previously been in code.  It just isn't as obvious as it once was in things like VB.  To navigate backwards all you need to do is click on the Navigate Backward button in the IDE.  Pretty simple, but the button is buried in the menu icons so it gets a little lost.  Here's a picture to help out.

    Navigat Backward

     

    Clicking on the little Arrow will actually bring up a history of where oyu have been in the code which can help you move around pretty quickly.  In addition to this, you can map this command to any keyboard combination you like by going to Tools -> Options.  Then under environment select "Keyboard".  Again, a picture to make it crystal clear.

     

    This was one of the things that I learned from a presentation by Steve Andrews at Code Camp 9.  he has a huge number of tips that used to by avaialble at http://www.platinumbay.com/.  Unfortunately, he took that down just yesterday in order to support a new book from Sara Ford.  I'd gripe about people being greedy, but in this case 100% of the book's proceeds go to rebuild a town wiped out by Katrina.  Bit tough to argue against someone wanting to do that... ;-)

    Hosting a codeplex project for the Boston XNA group at http://www.codeplex.com/BostonXNA/.

  • 08-27-2008 8:38 PM In reply to

    • cbowen
    • Top 10 Contributor
      Male
    • Joined on 07-07-2008
    • Massachusetts
    • Posts 7

    Re: Navigating and key re-mapping in Visual Studio

    A good tip to have in your toolbox, and one that I've stuffed into my Tips & Tricks talks in the past.  Thanks for posting it!

    I'll point out that those commands already have keybindings in Visual Studio.  Backward is CTRL+minus, and forward is the seemingly odd CTRL+SHIFT+minus (Why not CTRL+plus?  Because the convention is to add SHIFT to reverse a command.  e.g. CTRL+TAB & CTRL+SHIFT+TAB.)

    You can find a handy list of keyboard bindings for VB, C#, and C++ in the links in my "Posters" post:

    http://blogs.msdn.com/cbowen/archive/2007/12/09/got-tech-posters.aspx

    HTH,
    Chris

     

    Filed under: ,
Page 1 of 1 (2 items) | RSS
Powered by Community Server (Non-Commercial Edition), by Telligent Systems