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.

    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
                      • 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."

                        H Offline
                        H Offline
                        Hooga Booga
                        wrote on last edited by
                        #33

                        You really ought to include

                        -site:experts-exchange.com

                        in your URL

                        Outside of a dog, a book is a man's best friend; inside of a dog, it's too dark to read. -- Groucho Marx

                        OriginalGriffO 1 Reply Last reply
                        0
                        • H Hans Dietrich

                          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 Offline
                          M Offline
                          MattPenner
                          wrote on last edited by
                          #34

                          Thanks Hans! For those interested I just added an alternate version at the end of the tip Hans posted the link to. My alternate version opens the search outside of Visual Studio in the user's default browser. It also searches on the word the text cursor is on if there is no selection, much like the original F1 functioned. I'm lazy and I don't like to have to select the entire word just to search on it. :) Have fun!

                          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."

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

                            Thanks for the clear and quick tip! For those interested I just added an alternate version at the end of the tip in the link. My alternate version opens the search outside of Visual Studio in the user's default browser. It also searches on the word the text cursor is on if there is no selection, much like the original F1 functioned. I'm lazy and I don't like to have to select the entire word just to search on it. :) Oh, also, 95% of the time the result I want is in the first hit. For instance, when searching Google for "msdn ActionResult" the MSDN page for the ActionResult Class is the first one on the list. So, my new version also allows you to hit Shift+F1 (or whatever you map it to) to go directly to the first result, much like the I'm Feeling Lucky button on Google.

                            modified on Friday, February 11, 2011 3:12 PM

                            1 Reply Last reply
                            0
                            • H Hooga Booga

                              You really ought to include

                              -site:experts-exchange.com

                              in your URL

                              Outside of a dog, a book is a man's best friend; inside of a dog, it's too dark to read. -- Groucho Marx

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

                              :cough: I do. :cough: I also have that in my default search, so it gets added to every "normal" search I do as well...

                              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

                              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.

                                D Offline
                                D Offline
                                DavidSherwood
                                wrote on last edited by
                                #37

                                Maybe you people should upgrade to VS 2010. Microsoft revamp the help system. Its web based even with local help files. And you no longer get the 10 minute waits.

                                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