Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. F1 for help in VS

F1 for help in VS

Scheduled Pinned Locked Moved The Lounge
visual-studiocsharpperformancehelpannouncement
37 Posts 25 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R RugbyLeague

    I think I have some residual muscle memory left over from back in the day as I occasionally press F1 in Visual Studio when I need to know something. After waiting 10 minutes for the Help to update itself to reflect changes it takes me to some arcane corner of the MS world which I am sure is fascinating to some people but rarely reflects anything I am interested in.

    OriginalGriffO Offline
    OriginalGriffO Offline
    OriginalGriff
    wrote on last edited by
    #13

    I hadn't realised this wound other people up! I replaced it with a macro to Google a while ago. I have written up how as a Tip/Trick and just posted it here: http://www.codeproject.com/Tips/156089/Making-F1-do-something-useful-in-Visual-Studio.aspx[^] But in case it isn't available yet (moderation does take a while, sometimes) the process is: For Visual Studio 2008 and Visual Studio 2010: 1) Open VS, and on the Menu bar select "Tools...Macros...New Macro Project" 2) Call the project "GoogleSearchMSDN" 3) I'm so sorry about this, but VB is involved here. Not my fault, honest! 4) Rename the default Module1 to "DoGoogleSearchMSDN" - right click on the module name in the left hand pan, select "Rename" 5) Enter the following code as the module body:

    Sub GoogleSearchMSDN()
        Dim url As String
        Dim searchFor As TextSelection = DTE.ActiveDocument.Selection()
        If searchFor.Text <> "" Then
            url = "www.google.com/search?q=MSDN+" + searchFor.Text
        Else
            url = "www.google.com/search?q=MSDN"
        End If
        DTE.ExecuteCommand("View.URL", url)
    End Sub
    
    1. Build and save your module. 7) Use the menu bar again: "Tools...Options...Environment...Keyboard" 8) In the "Show commands containing:" textbox, type "Google" - you should see your new macro. 9) Go to the "Press shortcut keys" box, and press F1 10) Press OK. F1 now searches for "MSDN" plus whatever you highlighted.

    Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."

    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
    "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

    B H M 3 Replies Last reply
    0
    • R RugbyLeague

      I think I have some residual muscle memory left over from back in the day as I occasionally press F1 in Visual Studio when I need to know something. After waiting 10 minutes for the Help to update itself to reflect changes it takes me to some arcane corner of the MS world which I am sure is fascinating to some people but rarely reflects anything I am interested in.

      _ Offline
      _ Offline
      _beauw_
      wrote on last edited by
      #14

      I'm glad someone else noticed what a productivity-killer that key is. I always seem to press in at the most inopportune time. I've even thought about physically removing the F1 key from my keyboard.

      A 1 Reply Last reply
      0
      • R RugbyLeague

        I think I have some residual muscle memory left over from back in the day as I occasionally press F1 in Visual Studio when I need to know something. After waiting 10 minutes for the Help to update itself to reflect changes it takes me to some arcane corner of the MS world which I am sure is fascinating to some people but rarely reflects anything I am interested in.

        W Offline
        W Offline
        wout de zeeuw
        wrote on last edited by
        #15

        I never had an issue with it. If you're on some method with the cursor, and press F1, you get the help for that method. Quite convenient.

        Wout

        J P R 3 Replies Last reply
        0
        • P peterchen

          Remove F1 key (I did that with a keyboards "Shutdown" key), or shock yourself anytime you press it.

          FILETIME to time_t
          | FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

          R Offline
          R Offline
          realJSOP
          wrote on last edited by
          #16

          But F1 is still often useful in non-MS software.

          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
          -----
          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
          -----
          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

          P E 2 Replies Last reply
          0
          • G GenJerDan

            Yeah, but you go to Google and they yell at you to stop being lazy and go to Code Project's Q&A.

            ..and water fell from the sky like rain.

            R Offline
            R Offline
            realJSOP
            wrote on last edited by
            #17

            THAT was funny (unlike the joke posted above, which was not at all funny).

            ".45 ACP - because shooting twice is just silly" - JSOP, 2010
            -----
            You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
            -----
            "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

            M 1 Reply Last reply
            0
            • W wout de zeeuw

              I never had an issue with it. If you're on some method with the cursor, and press F1, you get the help for that method. Quite convenient.

              Wout

              J Offline
              J Offline
              John M Drescher
              wrote on last edited by
              #18

              wout de zeeuw wrote:

              If you're on some method with the cursor, and press F1, you get the help for that method. Quite convenient.

              That is when it gives the correct advice on the technology that you are using. For C++ users it seems to never get it correct. Especially if you have enabled SDK help. Maybe it actually works for .NET users. I do not know because I never rarely use .NET.

              John

              W G 2 Replies Last reply
              0
              • J John M Drescher

                wout de zeeuw wrote:

                If you're on some method with the cursor, and press F1, you get the help for that method. Quite convenient.

                That is when it gives the correct advice on the technology that you are using. For C++ users it seems to never get it correct. Especially if you have enabled SDK help. Maybe it actually works for .NET users. I do not know because I never rarely use .NET.

                John

                W Offline
                W Offline
                wout de zeeuw
                wrote on last edited by
                #19

                Aaah, I always wondered why so many people were complaining about the help. It always worked for me perfectly, but in .NET indeed.

                Wout

                1 Reply Last reply
                0
                • _ _beauw_

                  I'm glad someone else noticed what a productivity-killer that key is. I always seem to press in at the most inopportune time. I've even thought about physically removing the F1 key from my keyboard.

                  A Offline
                  A Offline
                  AspDotNetDev
                  wrote on last edited by
                  #20

                  Good idea. They should have locks so you can prevent certain keys from accidentally being pressed. Or maybe covers to put over keys that prevent them from being pressed.

                  [WikiLeaks Cablegate Cables]

                  1 Reply Last reply
                  0
                  • R realJSOP

                    But F1 is still often useful in non-MS software.

                    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                    -----
                    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                    -----
                    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                    P Offline
                    P Offline
                    peterchen
                    wrote on last edited by
                    #21

                    The tie the shocker to a process that checks which app the thread attached to keyboard input belongs to... Or just reroute F1 to a tool deleting your source tree. Lacks the physical component, but does the job.

                    FILETIME to time_t
                    | FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

                    1 Reply Last reply
                    0
                    • J John M Drescher

                      wout de zeeuw wrote:

                      If you're on some method with the cursor, and press F1, you get the help for that method. Quite convenient.

                      That is when it gives the correct advice on the technology that you are using. For C++ users it seems to never get it correct. Especially if you have enabled SDK help. Maybe it actually works for .NET users. I do not know because I never rarely use .NET.

                      John

                      G Offline
                      G Offline
                      Gary Wheeler
                      wrote on last edited by
                      #22

                      That's what I've found. .NET F1 help is dead-on most of the time. F1 help for Win32, SDK, and MFC are whimsical, usually being routed to help for the Media Player version 5.2 SDK (dated 1998). Of course, it's my firm belief that this is a deliberate policy of Microsoft. It's part and parcel of their effort to deprecate/abandon native-mode development in general, and C++ in particular.

                      Software Zen: delete this;

                      1 Reply Last reply
                      0
                      • R RugbyLeague

                        I think I have some residual muscle memory left over from back in the day as I occasionally press F1 in Visual Studio when I need to know something. After waiting 10 minutes for the Help to update itself to reflect changes it takes me to some arcane corner of the MS world which I am sure is fascinating to some people but rarely reflects anything I am interested in.

                        P Offline
                        P Offline
                        PIEBALDconsult
                        wrote on last edited by
                        #23

                        I use it all the time (when using VS anyway). It does go horribly wrong some times, but I tell it to never try to access online help so at least it goes wrong quickly -- at which point I usually go to http://msdn.microsoft.com/en-us/library/ms229335(v=VS.90).aspx[^] and RTFM. My biggest complaint is that when I have a syntax error and try to use F1 to get the proper syntax, it brings up an explanation of the error instead :mad: . Also when it pulls up a general discussion of some topic rather than the class I'm trying to use X| .

                        1 Reply Last reply
                        0
                        • R RugbyLeague

                          I think I have some residual muscle memory left over from back in the day as I occasionally press F1 in Visual Studio when I need to know something. After waiting 10 minutes for the Help to update itself to reflect changes it takes me to some arcane corner of the MS world which I am sure is fascinating to some people but rarely reflects anything I am interested in.

                          A Offline
                          A Offline
                          Anna Jayne Metcalfe
                          wrote on last edited by
                          #24

                          I press F1 for caffeine. There's always enough time to acquire some before the IDE comes back. :-\

                          Anna :rose: Tech Blog | Visual Lint "Why would anyone prefer to wield a weapon that takes both hands at once, when they could use a lighter (and obviously superior) weapon that allows you to wield multiple ones at a time, and thus supports multi-paradigm carnage?"

                          1 Reply Last reply
                          0
                          • W wout de zeeuw

                            I never had an issue with it. If you're on some method with the cursor, and press F1, you get the help for that method. Quite convenient.

                            Wout

                            P Offline
                            P Offline
                            Pete Appleton
                            wrote on last edited by
                            #25

                            Is your VS build available externally, or only to MS employees?

                            -- What's a signature?

                            W 1 Reply Last reply
                            0
                            • P Pete Appleton

                              Is your VS build available externally, or only to MS employees?

                              -- What's a signature?

                              W Offline
                              W Offline
                              wout de zeeuw
                              wrote on last edited by
                              #26

                              I guess the first, since MS employees don't have access to my build.

                              Wout

                              1 Reply Last reply
                              0
                              • W wout de zeeuw

                                I never had an issue with it. If you're on some method with the cursor, and press F1, you get the help for that method. Quite convenient.

                                Wout

                                R Offline
                                R Offline
                                Rob Grainger
                                wrote on last edited by
                                #27

                                Really? I keep finding that searching for say, Dispose finds an implementation for some class other than the class or interface that introduced it (IDisposable in this case, for some reason matched System.Web.Control.Dispose in the F1 search I just did. Searching "MSDN dispose on google" by contrast found: 1. IDisposable.Dispose Method (System) 2. Implementing a Dispose Method as the first two matches - a much better result. I really appreciated the suggestion of tying it in to a Macro - single keystroke F1 help that works. I've also used the C++ F1 help - now that is just an abortion of an excuse for help, fathered by an abomination.

                                1 Reply Last reply
                                0
                                • R realJSOP

                                  THAT was funny (unlike the joke posted above, which was not at all funny).

                                  ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                  -----
                                  You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                  -----
                                  "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                                  M Offline
                                  M Offline
                                  Macotti
                                  wrote on last edited by
                                  #28

                                  I so agree. The one above was rather poor.

                                  1 Reply Last reply
                                  0
                                  • R realJSOP

                                    But F1 is still often useful in non-MS software.

                                    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                    -----
                                    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                    -----
                                    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                                    E Offline
                                    E Offline
                                    Emrem
                                    wrote on last edited by
                                    #29

                                    Really? :doh:

                                    1 Reply Last reply
                                    0
                                    • OriginalGriffO OriginalGriff

                                      I hadn't realised this wound other people up! I replaced it with a macro to Google a while ago. I have written up how as a Tip/Trick and just posted it here: http://www.codeproject.com/Tips/156089/Making-F1-do-something-useful-in-Visual-Studio.aspx[^] But in case it isn't available yet (moderation does take a while, sometimes) the process is: For Visual Studio 2008 and Visual Studio 2010: 1) Open VS, and on the Menu bar select "Tools...Macros...New Macro Project" 2) Call the project "GoogleSearchMSDN" 3) I'm so sorry about this, but VB is involved here. Not my fault, honest! 4) Rename the default Module1 to "DoGoogleSearchMSDN" - right click on the module name in the left hand pan, select "Rename" 5) Enter the following code as the module body:

                                      Sub GoogleSearchMSDN()
                                          Dim url As String
                                          Dim searchFor As TextSelection = DTE.ActiveDocument.Selection()
                                          If searchFor.Text <> "" Then
                                              url = "www.google.com/search?q=MSDN+" + searchFor.Text
                                          Else
                                              url = "www.google.com/search?q=MSDN"
                                          End If
                                          DTE.ExecuteCommand("View.URL", url)
                                      End Sub
                                      
                                      1. Build and save your module. 7) Use the menu bar again: "Tools...Options...Environment...Keyboard" 8) In the "Show commands containing:" textbox, type "Google" - you should see your new macro. 9) Go to the "Press shortcut keys" box, and press F1 10) Press OK. F1 now searches for "MSDN" plus whatever you highlighted.

                                      Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."

                                      B Offline
                                      B Offline
                                      Battlehammer
                                      wrote on last edited by
                                      #30

                                      Awesome, thanks for the tip.

                                      1 Reply Last reply
                                      0
                                      • H Hans Dietrich

                                        Of all the things wrong with VS, this is at the top of my list. My personal coping strategy: I have set up a macro to take a highlighted word or phrase and throw it at google, prefixed with 'msdn'. Wonder of wonders, I find what I'm looking for, nearly always #1 result. The google search is opened in a window inside VS.

                                        Best wishes, Hans


                                        [Hans Dietrich Software]

                                        M Offline
                                        M Offline
                                        MattPenner
                                        wrote on last edited by
                                        #31

                                        This is exactly what I do but the manual way. I don't have a macro set up. What did you do to set this up? Is this set up in Visual Studio itself or some other macro app? I'd really like to do the same. Thanks!

                                        H 1 Reply Last reply
                                        0
                                        • M MattPenner

                                          This is exactly what I do but the manual way. I don't have a macro set up. What did you do to set this up? Is this set up in Visual Studio itself or some other macro app? I'd really like to do the same. Thanks!

                                          H Offline
                                          H Offline
                                          Hans Dietrich
                                          wrote on last edited by
                                          #32

                                          This has just been submitted as a tip here: http://www.codeproject.com/Tips/156089/Making-F1-do-something-useful-in-Visual-Studio.aspx[^]

                                          Best wishes, Hans


                                          [Hans Dietrich Software]

                                          M 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups