Jump to Closing tag in VS Code?

You can use Cmd + % to jump tags in VSCode if you add the following to your keybindings.json.

{
    "key":"cmd+shift+5",
    "command": "editor.emmet.action.matchTag"
}

Go to: File > Preferences > Keyboard Shortcuts and click the underlined link to edit keybindings.json.

For those using VIM keys: you are already used to pressing % to jump to matching parens and tags. So, hopefully, Cmd + % will be close enough to your existing muscle memory to make this transition painless.


For those who are using Vim plugin and Mac, Leader+% is working well for me.

You can setup in your Vim json file setting.json by adding:

"vim.normalModeKeyBindingsNonRecursive": [
    {
      "before": ["<leader>", "%"],
      "commands": [
        {
          "command": "editor.emmet.action.matchTag"
        }
      ]
    }
]

PS. I mentioned Mac user because cmd+shift+5 is for capturing the screen in Mac.


It is possible to do, but either using Ctrl + Shift + P -> "Emmet: Go to Matching Pair" or by manually setting a shortcut for it (Ctrl + K Ctrl + S).

Unfortunately there is currently no support for it out of the box.