Shortcut key navigation

3

As the complexity of the code increases, a number of keys may 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 any shortcut key, to jump from that closing key to the key that opens the code? I usually put a comment on the front telling you where this key belongs

} // fechamento do if(exemplo)

But it passes a lot of code from other programmers that do not have any type of signaling.

    
asked by anonymous 12.05.2017 / 15:39

2 answers

5

To switch between them, simply hold the cursor on one of them and hit the command Ctrl + [

* Note that there may be a change in the shortcut depending on the keyboard, but this can be easily set to: Tools - > Options - > Environment - > Keyboard

    
12.05.2017 / 15:53
2

Mathias's answer already answers your question.

  

just be with the cursor in the closing key and press the command    Ctrl + [

Just to complement, here are some tips:

If you want refer to other shortcuts you can go to the Tools - > Options - > Environment - > Keyboard :

ThisshortcutisnamedEdit.GotoBrace,inthisoption,asshownintheimage.

Note:Thisisimportantbecauseforotherkeyboards(otherthanpt_BR), shortcut might be different .

    
12.05.2017 / 15:59