Shortcut navigation between keys

Asked

Viewed 71 times

3

As the complexity of the code increases, several keys can start to appear opening and closing blocks of code, but several times at the end of the code there is a series of keys like this:

     } 
    }
   } 
  }
 }
}

Is there any way to jump from this lock key to the key that opens the code? I usually put a comment in front stating where this key belongs

} // fechamento do if(exemplo)

but passes enough codes from other programmers who have no kind of signaling.

2 answers

5


To switch between them, just be with the cursor in one of them and trigger the command Ctrl + [

*note that there may be change in the shortcut depending on the keyboard, but this can be easily configured in: Tools -> Options -> Environment -> Keyboardinserir a descrição da imagem aqui

2

Mathias' answer already answers your question.

just stand with the cursor on the lock key and trigger the command Ctrl + [

Just to complement, here are some tips:

If you want consult other shortcuts can go on option Tools -> Options -> Environment -> Keyboard:

inserir a descrição da imagem aqui

This shortcut is called Edit.GotoBrace, in this option, as shown in the image.

Note: this is important because for other keyboards (other than pt_BR), shortcut may be different.

  • I was complementing the answer with this, good observation!!

  • @Mathias, a few seconds after I posted came his complement kkk.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.