IssueRaiser

Delete matching parentheses, brackets, or braces

- VSCode Version: Code 1.16.1 (27492b6bf3acb0775d82d2f87b25a93490673c6d, 2017-09-14T16:38:23.027Z) - OS Version: Windows_NT x64 6.3.9600 - Extensions: Extensions are disabled --- Steps to Reproduce: 1. Create a new file. 2. Paste the following code: `var foo = (1 + bar) + baz;`. 3. Position the cursor before the first `(`. It and its matching parenthesis should highlight. 4. Hit the delete key. 5. Only the first parenthesis is deleted. It would be useful if the corresponding parenthesis, brace, or bracket were deleted when the targeted one was. I see two ways to accomplish this: 1. Add a shortcut for both backspace and delete that does the operation on the matching character. 2. Automatically do the deletion. This could be an extension of the already-existing "editor.autoClosingBrackets" setting or (more likely) a new setting that governs this behavior. <!-- Launch with `code --disable-extensions` to check. --> Reproduces without extensions: Yes

Posted by nrabins on Sep 21, 2017, 2:12 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.4,500 issues0 comments

github (Other)

Delete matching parentheses, brackets, or braces

nrabinsSep 21, 2017, 2:12 PM

- VSCode Version: Code 1.16.1 (27492b6bf3acb0775d82d2f87b25a93490673c6d, 2017-09-14T16:38:23.027Z) - OS Version: Windows_NT x64 6.3.9600 - Extensions: Extensions are disabled --- Steps to Reproduce: 1. Create a new file. 2. Paste the following code: `var foo = (1 + bar) + baz;`. 3. Position the cursor before the first `(`. It and its matching parenthesis should highlight. 4. Hit the delete key. 5. Only the first parenthesis is deleted. It would be useful if the corresponding parenthesis, brace, or bracket were deleted when the targeted one was. I see two ways to accomplish this: 1. Add a shortcut for both backspace and delete that does the operation on the matching character. 2. Automatically do the deletion. This could be an extension of the already-existing "editor.autoClosingBrackets" setting or (more likely) a new setting that governs this behavior. <!-- Launch with `code --disable-extensions` to check. --> Reproduces without extensions: Yes

Comments (0)

No comments yet. Start the discussion.

Comment on this issue