Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I jump to a closing bracket in Visual Studio Code?

In VSCode when I type a bracket, e.g '(', it automatically creates the ending bracket: ')'. Are there any shortcuts to jump to the closing bracket or parenthesis, without pressing the 'End' key?

I found a way to do in Sublime Text 2 that did exactly that, using a Regex in the User's Key Bindings, but couldn't find a way to do it in VSCode.

like image 465
resurrecteds Avatar asked May 07 '15 09:05

resurrecteds


People also ask

How do you jump a closing tag in VS code?

In this case you can simply press Ctrl + Shift + . to go to elements before or after the current element.


2 Answers

Mac Cmd+Shift+\

  • Mac with french keyboard : Ctrl+Cmd+Option+Shift+L

Windows Ctrl+Shift+\

  • Windows with spanish keyboard Ctrl+Shift+|

  • Windows with german keyboard Ctrl+Shift+^

Ubuntu Ctrl+Shift+\


Alternatively, you can do:

Ctrl+Shift+p

And select

Preferences: Open Keyboard Shortcuts

There you will be able to see all the shortcuts, and create your own. The command in question is called editor.action.jumpToBracket.

like image 59
JesusIniesta Avatar answered Oct 03 '22 04:10

JesusIniesta


The out-of-the-box way to do it is Ctrl + Shift + |

like image 36
Ariel Avatar answered Oct 03 '22 04:10

Ariel