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. Where Is IntelliSense For "goto" statements?

Where Is IntelliSense For "goto" statements?

Scheduled Pinned Locked Moved The Lounge
visual-studiocsharptutorialquestion
58 Posts 28 Posters 13 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 Richard Blythe

    I don't use the: "goto" statement very often but I have started using it more frequently. Does anyone know why Visual Studio does not implement IntelliSense for goto statements? For example: // VS code editor does not show IntelliSense with //available "Label_" when entering this goto statement if (condition == true) goto Label_ExitCode; //... Label_ExitCode: //...

    The mind is like a parachute. It doesn’t work unless it’s open.

    D Offline
    D Offline
    Dave Kreskowiak
    wrote on last edited by
    #2

    Richard Blythe wrote:

    I don't use the: "goto" statement very often but I have started using it more frequently.

    >SMACK!!< You what? :| I haven't found a need for a GOTO in the last, oh, 15 years...

    A guide to posting questions on CodeProject[^]
    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
         2006, 2007, 2008
    But no longer in 2009...

    R L A 3 Replies Last reply
    0
    • D Dave Kreskowiak

      Richard Blythe wrote:

      I don't use the: "goto" statement very often but I have started using it more frequently.

      >SMACK!!< You what? :| I haven't found a need for a GOTO in the last, oh, 15 years...

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      R Offline
      R Offline
      Richard Blythe
      wrote on last edited by
      #3

      Thanks for your informative post. :laugh:

      The mind is like a parachute. It doesn’t work unless it’s open.

      N 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Richard Blythe wrote:

        I don't use the: "goto" statement very often but I have started using it more frequently.

        >SMACK!!< You what? :| I haven't found a need for a GOTO in the last, oh, 15 years...

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008
        But no longer in 2009...

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #4

        Are you going to start continue the anti-goto-crusade?

        D B 2 Replies Last reply
        0
        • R Richard Blythe

          I don't use the: "goto" statement very often but I have started using it more frequently. Does anyone know why Visual Studio does not implement IntelliSense for goto statements? For example: // VS code editor does not show IntelliSense with //available "Label_" when entering this goto statement if (condition == true) goto Label_ExitCode; //... Label_ExitCode: //...

          The mind is like a parachute. It doesn’t work unless it’s open.

          A Offline
          A Offline
          Abhinav S
          wrote on last edited by
          #5

          Richard Blythe wrote:

          I don't use the: "goto" statement very often but I have started using it more frequently.

          http://xkcd.com/292/.

          Richard Blythe wrote:

          Does anyone know why Visual Studio does not implement IntelliSense for goto statements?

          See above link. :) Seriously though see this.

          The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.

          1 Reply Last reply
          0
          • L Lost User

            Are you going to start continue the anti-goto-crusade?

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #6

            YES _ NOW PUT DOWN THAT GOTO IMMEDIATELY AND TAKE TWO STEPS BACK! I WILL FIRE ON YOU! :laugh:

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008
            But no longer in 2009...

            1 Reply Last reply
            0
            • L Lost User

              Are you going to start continue the anti-goto-crusade?

              B Offline
              B Offline
              Brady Kelly
              wrote on last edited by
              #7

              Hey guys, give it a break;

              R 1 Reply Last reply
              0
              • B Brady Kelly

                Hey guys, give it a break;

                R Offline
                R Offline
                Rajesh R Subramanian
                wrote on last edited by
                #8

                Why not continue?

                It's time for a new sig. Seriously.

                B D R 3 Replies Last reply
                0
                • R Rajesh R Subramanian

                  Why not continue?

                  It's time for a new sig. Seriously.

                  B Offline
                  B Offline
                  Brady Kelly
                  wrote on last edited by
                  #9

                  I'll do a feasibily first, but I'll keep you in the loop on changes foreach sprint.

                  1 Reply Last reply
                  0
                  • R Rajesh R Subramanian

                    Why not continue?

                    It's time for a new sig. Seriously.

                    D Offline
                    D Offline
                    Dr Walt Fair PE
                    wrote on last edited by
                    #10

                    We probably need to switch things, at least I think that's the case.

                    CQ de W5ALT

                    Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

                    R 1 Reply Last reply
                    0
                    • R Rajesh R Subramanian

                      Why not continue?

                      It's time for a new sig. Seriously.

                      R Offline
                      R Offline
                      Richard Blythe
                      wrote on last edited by
                      #11

                      I don't use goto statements to exit a loop. Why is Dave thumbing his nose about using "goto"? If you decompile the .Net Framework, their developers still use "goto" statements. By the way, my original question has yet to be answered.

                      The mind is like a parachute. It doesn’t work unless it’s open.

                      L 1 Reply Last reply
                      0
                      • D Dr Walt Fair PE

                        We probably need to switch things, at least I think that's the case.

                        CQ de W5ALT

                        Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

                        R Offline
                        R Offline
                        Rajesh R Subramanian
                        wrote on last edited by
                        #12

                        It would be fun if we do drag this thing for a while.

                        It's time for a new sig. Seriously.

                        T 1 Reply Last reply
                        0
                        • R Rajesh R Subramanian

                          It would be fun if we do drag this thing for a while.

                          It's time for a new sig. Seriously.

                          T Offline
                          T Offline
                          TheyCallMeMrJames
                          wrote on last edited by
                          #13

                          In the event that we can't, we'd better delegate someone to release the thread.

                          They Call me Mister James

                          D 1 Reply Last reply
                          0
                          • R Richard Blythe

                            I don't use goto statements to exit a loop. Why is Dave thumbing his nose about using "goto"? If you decompile the .Net Framework, their developers still use "goto" statements. By the way, my original question has yet to be answered.

                            The mind is like a parachute. It doesn’t work unless it’s open.

                            L Offline
                            L Offline
                            Luc Pattyn
                            wrote on last edited by
                            #14

                            a goto in some decompilation output does not prove there was a goto in the original source; it could be the decompiler did not recognize the original (looping) construct. In the end, every construct that changes the program flow is bound to get translated in an elementary jump/goto/branch/call/return instruction. :)

                            Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

                            Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

                            R R C 3 Replies Last reply
                            0
                            • R Richard Blythe

                              I don't use the: "goto" statement very often but I have started using it more frequently. Does anyone know why Visual Studio does not implement IntelliSense for goto statements? For example: // VS code editor does not show IntelliSense with //available "Label_" when entering this goto statement if (condition == true) goto Label_ExitCode; //... Label_ExitCode: //...

                              The mind is like a parachute. It doesn’t work unless it’s open.

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

                              What language?

                              R 1 Reply Last reply
                              0
                              • T TheyCallMeMrJames

                                In the event that we can't, we'd better delegate someone to release the thread.

                                They Call me Mister James

                                D Offline
                                D Offline
                                Dr Walt Fair PE
                                wrote on last edited by
                                #16

                                We could always repeat until the next topic comes up.

                                CQ de W5ALT

                                Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

                                R 1 Reply Last reply
                                0
                                • P PIEBALDconsult

                                  What language?

                                  R Offline
                                  R Offline
                                  Richard Blythe
                                  wrote on last edited by
                                  #17

                                  C# Have you noticed that no one has even remotely answered the original question?

                                  The mind is like a parachute. It doesn’t work unless it’s open.

                                  P 1 Reply Last reply
                                  0
                                  • L Luc Pattyn

                                    a goto in some decompilation output does not prove there was a goto in the original source; it could be the decompiler did not recognize the original (looping) construct. In the end, every construct that changes the program flow is bound to get translated in an elementary jump/goto/branch/call/return instruction. :)

                                    Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

                                    Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

                                    R Offline
                                    R Offline
                                    Richard Blythe
                                    wrote on last edited by
                                    #18

                                    Point well taken.

                                    The mind is like a parachute. It doesn’t work unless it’s open.

                                    1 Reply Last reply
                                    0
                                    • D Dr Walt Fair PE

                                      We could always repeat until the next topic comes up.

                                      CQ de W5ALT

                                      Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

                                      R Offline
                                      R Offline
                                      RichardM1
                                      wrote on last edited by
                                      #19

                                      I'm taking exception with this whole line of reasoning.

                                      Opacity, the new Transparency.

                                      T 1 Reply Last reply
                                      0
                                      • R RichardM1

                                        I'm taking exception with this whole line of reasoning.

                                        Opacity, the new Transparency.

                                        T Offline
                                        T Offline
                                        TheyCallMeMrJames
                                        wrote on last edited by
                                        #20

                                        You could always try to override the topic.

                                        They Call me Mister James

                                        R 1 Reply Last reply
                                        0
                                        • T TheyCallMeMrJames

                                          You could always try to override the topic.

                                          They Call me Mister James

                                          R Offline
                                          R Offline
                                          RichardM1
                                          wrote on last edited by
                                          #21

                                          Please, just take it to another thread!

                                          Opacity, the new Transparency.

                                          A A 2 Replies 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