• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

something in VC++ MS Visual Studio bugging me ... do you know ?

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    something in VC++ MS Visual Studio bugging me ... do you know ?

    something in VC++ MS Visual Studio is bugging me ... do you know what the key short cut is that makes the cursor jump to the corresponding parenthesis of a compound statement in VC++ ?? even if the parenthesis pair is deeply nested ?


    example :-

    void ExpectASarcasticOrSnottyReplyToThisEmail
    {
    if (true)
    {
    while (true)
    {
    if (true)
    { // <--------------- cursor at opening parenthesis a).

    cout << "I love Jordan" << endl;

    } // corresponding clossing parenthesis b) in compound
    statement.
    }
    }
    }

    #2
    I just use Resharper with C#... sorry mate.....
    Vieze Oude Man

    Comment


      #3
      Try this:


      void ExpectASarcasticOrSnottyReplyToThisEmail
      {

      // no brackets needed for just one statement
      if (true)
      while (true)
      {
      if (true) // no brackets needed for just one statement
      cout << "I love Jordan" << endl;

      }

      }

      Comment


        #4
        feck me that sounds complicated, give it to the Indians

        Milan.

        Comment


          #5
          Yep, lets offshore AtW....

          Sorry mate
          Vieze Oude Man

          Comment


            #6
            You guys give up too easy, here is my second attempt to help:

            void ExpectASarcasticOrSnottyReplyToThisEmail
            {

            // no brackets needed at all
            for(;
            cout << "I love Jordan\n";

            }

            Comment


              #7
              Hell, I am on a roll today, 3rd version:

              void ExpectASarcasticOrSnottyReplyToThisEmail
              {
              cout << "I love Jordan\n";
              ExpectASarcasticOrSnottyReplyToThisEmail();
              }

              Comment


                #8
                I am still not out of ideas here, 4th version:

                #define begin {
                #define end }

                void ExpectASarcasticOrSnottyReplyToThisEmail
                begin

                cout << "I love Jordan\n";
                ExpectASarcasticOrSnottyReplyToThisEmail();

                end

                Comment


                  #9
                  Originally posted by messiah
                  something in VC++ MS Visual Studio is bugging me ... do you know what the key short cut is that makes the cursor jump to the corresponding parenthesis of a compound statement in VC++ ?? even if the parenthesis pair is deeply nested ?

                  }
                  depends which version you're on

                  in VC6 it is ctrl+]
                  in VS .net depends on what mode you have it in
                  go to tools, options, environment, keyboard, type brace into the search box

                  Comment


                    #10
                    It's no coincidence that .net rhymes with .tulipe...

                    Have you thought about learning 6502 assembly language?

                    Comment

                    Working...
                    X