Navigating the code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • glenn

    Navigating the code

    Can anyone tell me if there is a quick way to move around in the code to do
    this?

    1) I am in a function block and want to jump to the top of that section of
    code without having to pick the mouse up, move to the scroll bar and scroll
    up all the while looking very closely to make sure I don't leave the current
    block.

    To clarify: If I had the following code:

    if ( mycode == yourcode )
    { <-- It would move me to here (1)
    if ( hiscode == hercode )
    {
    if (theircode == thatcode )
    {

    }
    }
    } <-- if I am here (1)


  • Rakesh Rajan

    #2
    RE: Navigating the code

    Hi,

    Try Ctrl+}
    This will cycle between the starting and ending blocks.

    HTH,
    Rakesh Rajan

    "glenn" wrote:
    [color=blue]
    > Can anyone tell me if there is a quick way to move around in the code to do
    > this?
    >
    > 1) I am in a function block and want to jump to the top of that section of
    > code without having to pick the mouse up, move to the scroll bar and scroll
    > up all the while looking very closely to make sure I don't leave the current
    > block.
    >
    > To clarify: If I had the following code:
    >
    > if ( mycode == yourcode )
    > { <-- It would move me to here (1)
    > if ( hiscode == hercode )
    > {
    > if (theircode == thatcode )
    > {
    >
    > }
    > }
    > } <-- if I am here (1)
    >
    >
    >[/color]

    Comment

    • glenn

      #3
      Re: Navigating the code

      You have made my night. Thanks!!!

      cybercrypt


      "Rakesh Rajan" <RakeshRajan@di scussions.micro soft.com> wrote in message
      news:09E1B038-9507-41EA-BB6B-D5F020468B46@mi crosoft.com...[color=blue]
      > Hi,
      >
      > Try Ctrl+}
      > This will cycle between the starting and ending blocks.
      >
      > HTH,
      > Rakesh Rajan
      >
      > "glenn" wrote:
      >[color=green]
      > > Can anyone tell me if there is a quick way to move around in the code to[/color][/color]
      do[color=blue][color=green]
      > > this?
      > >
      > > 1) I am in a function block and want to jump to the top of that section[/color][/color]
      of[color=blue][color=green]
      > > code without having to pick the mouse up, move to the scroll bar and[/color][/color]
      scroll[color=blue][color=green]
      > > up all the while looking very closely to make sure I don't leave the[/color][/color]
      current[color=blue][color=green]
      > > block.
      > >
      > > To clarify: If I had the following code:
      > >
      > > if ( mycode == yourcode )
      > > { <-- It would move me to here (1)
      > > if ( hiscode == hercode )
      > > {
      > > if (theircode == thatcode )
      > > {
      > >
      > > }
      > > }
      > > } <-- if I am here (1)
      > >
      > >
      > >[/color][/color]


      Comment

      • Rakesh Rajan

        #4
        Re: Navigating the code

        Glad to have been of help! :)

        Regards,
        Rakesh Rajan

        "glenn" wrote:
        [color=blue]
        > You have made my night. Thanks!!!
        >
        > cybercrypt
        >
        >
        > "Rakesh Rajan" <RakeshRajan@di scussions.micro soft.com> wrote in message
        > news:09E1B038-9507-41EA-BB6B-D5F020468B46@mi crosoft.com...[color=green]
        > > Hi,
        > >
        > > Try Ctrl+}
        > > This will cycle between the starting and ending blocks.
        > >
        > > HTH,
        > > Rakesh Rajan
        > >
        > > "glenn" wrote:
        > >[color=darkred]
        > > > Can anyone tell me if there is a quick way to move around in the code to[/color][/color]
        > do[color=green][color=darkred]
        > > > this?
        > > >
        > > > 1) I am in a function block and want to jump to the top of that section[/color][/color]
        > of[color=green][color=darkred]
        > > > code without having to pick the mouse up, move to the scroll bar and[/color][/color]
        > scroll[color=green][color=darkred]
        > > > up all the while looking very closely to make sure I don't leave the[/color][/color]
        > current[color=green][color=darkred]
        > > > block.
        > > >
        > > > To clarify: If I had the following code:
        > > >
        > > > if ( mycode == yourcode )
        > > > { <-- It would move me to here (1)
        > > > if ( hiscode == hercode )
        > > > {
        > > > if (theircode == thatcode )
        > > > {
        > > >
        > > > }
        > > > }
        > > > } <-- if I am here (1)
        > > >
        > > >
        > > >[/color][/color]
        >
        >
        >[/color]

        Comment

        Working...