How to delete matching brackets in VS Code?
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.
更多推荐
所有评论(0)