Answer a question

I know you can jump between matching brackets with Ctrl + Shift + \. I would like to place the cursor right after a bracket and delete both that bracket and its matching one as easily as possible.

Since with Alt + Click you can have multiple selections, I was looking for something similar to: Ctrl + Shift + Alt + \ for placing another cursor on the matching bracket and then deleting both with a single backspace.

Is there any shortcut deleting a pair of matching brackets/parenthesis?

Answers

There is an extension called Bracketeer that does what you want.

First, install with

Ctrl-p, then ext install pustelto.bracketeer, followed by an enter.

You can then add the following to your keybindings.json

  {
    "key": "ctrl+alt+backspace",
    "command": "bracketeer.removeBrackets"
  },

You can then use ctrl-alt-backspace to remove matching brackets.

Logo

开发云社区提供前沿行业资讯和优质的学习知识,同时提供优质稳定、价格优惠的云主机、数据库、网络、云储存等云服务产品

更多推荐