Infovark Underground

  • news
    • infoblog
    • underground
  • product
  • download
  • buy
  • support
  • about
    • ← Enums are Ints that Ain’t
    • Tools: ReSharper 4.0 →

    How to avoid Visual Studio Help

    28 Jul 2008 by Gordon in .NET, Infovark, Tools, UI / 1 Comment

    For what seems like the thirteen-thousandth time, I just accidentally pushed the F1 key while I was writing some code. It’s pretty close to the escape key. I didn’t mean to push it. I guess I just have fat fingers.

    I really, really hate pressing F1 in Visual Studio. Usually, it takes about a minute to display Microsoft’s help documentation thingy, which is impossible to navigate, frequently wrong and and generally not very helpful. This afternoon, the document explorer decided it had to go and update itself, which took about five minutes before it could take it’s usual minute to load the non-relevant, non-help, that I didn’t even want in the first place!

    During this time, Visual Studio was COMPLETELY Unusable. The help dialog blocks the main visual studio  thread – and all attempts to get back to work were greeted with a friendly, informative “This may take several minutes” dialog.

    Time Passes…
    Time Passes…
    Time Passes…

    Arggh! Gord Mad!… And it turns out it’s not just me. This annoys other folks, too!

    Right. That’s it Visual Studio. You’ve made me go through this song and dance for THE LAST TIME!

    For starters, where do we all go for help? To Google, that’s where. So, I added an external tool using the Tools>External Tools Method:

    Adding an External Tool

    I set up my command to point to Firefox, and passed as the arguments:

    http://www.google.com/search?site=&hl=en&q=$(CurText)+c%23&

    (The +c%23& part of the command appends “C#” to whatever is highlighted in the IDE. If you’re not using C#, you could leave it out, or substitute it with whatever else you usually search for)

    Then, I flipped over to the Keyboard bindings screen (Tools > Options > Keyboard:)

    VS 2008 Keybinding

    VS 2008 Keyboard Binding Screen

    And I re-mapped the F1 key to my new ExternalCommand1.

    There! Now, whenever I press F1, Visual Studio opens a new tab on my web browser, and searches Google for whatever I have highlighted in the IDE.

    Purposefully punishing developers with a minute or two wait everytime they press a certain key is just plain unforgivable. They get really distracted trying to work around the “functionality”, and then further distracted writing ranty blog posts about it…

    Related posts

    1. 3 Useful Visual Studio Tricks for Spark Templates
    2. Visual Studio 2008 and the CopyLocal setting
    3. Visual Studio 2008 and its CopyLocal setting
    4. Firebird 2.1 Released
    5. Tools: Add In Express
    • Tweet
    • Tags:
    • Visual Studio

    1 Comment

    • Peter Mounce

      I prefer binding F1 to “run all tests” ;-)

      16 Apr 2010 04:04 am
      Reply

      Leave a Comment

      Posting your comment...

      Subscribe to these comments via email

      • Categories

        • .NET (41)
        • AJAX (3)
        • Books (7)
        • HTML (9)
        • Infovark (8)
        • Programming (48)
        • REST (11)
        • SQL (3)
        • Testing (3)
        • Tools (13)
        • UI (3)
        • WCF (11)
        • Web Services (8)
        • WPF (4)
        • XML (4)
      • Archives

      • Get future articles


         

      • Blogroll

        • Ajaxian
        • Anne Van Kesteren
        • Brain.Save()
        • Coding Horror
        • Eric Sink
        • Joel Spolsky
        • John Resig
        • Mark Pilgrim
        • Raymond Chen
        • Scott Hansleman
        • Secret Geek
        • Steve Yegge
        • The Daily WTF
        • The Database Programmer
      • Meta

        • Log in
        • Entries RSS
        • Comments RSS
        • WordPress.org
    • Site map

      • News
      • Product
      • Download
      • Buy
      • Support
      • About
    • Recent Posts

      • Review: Brownfield Application Development in .NET
      • Using Modal Dialogs with a Splash Screen in WPF
      • Highlighting query terms in a WPF TextBlock
      • Getting XAML Hyperlink text to wrap
      • How to format the XAML Hyperlink NavigateUri
    • Twitter

      Copyright 2011 Infovark, Inc. All rights reserved.