Jump to Closing tag in VS Code?

后端 未结 5 1410
执念已碎
执念已碎 2021-01-31 01:59

I can\'t seem to find a way to select the beginning of a bracket and jump to the end of it through some key combination or something in VS Code. For example, in ato

5条回答
  •  青春惊慌失措
    2021-01-31 02:15

    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.

提交回复
热议问题