Bracket & Quote ToolsA VSCode extension to simplify bracket & quote operations. It helps streamline selection changes, wrapping, replacement, and deletion of brackets during code editing. Designed to minimize the number of keybindings that require association.
Main FeaturesChange Selection (
|
Command ID | Description |
---|---|
extension.changeSelection |
Change selection based on cursor and brackets/tags |
extension.surroundWithInput |
Wrap the selection with user input |
extension.replaceBracketsOrQuotes |
Replace the current bracket or quote with another |
Example Keyboard Shortcuts
Add the following to keybindings.json
:
[
{
"key": "ctrl+alt+s",
"command": "extension.changeSelection",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+w",
"command": "extension.surroundWithInput",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+r",
"command": "extension.replaceBracketsOrQuotes",
"when": "editorTextFocus"
}
]
Notes
Complex regular expressions may not be recognized correctly.
Multi-cursor support is provided, but very deep nesting may cause unexpected behavior.
Extension behavior may depend on the VSCode version.
Developer Info
{ "repository": "https://github.com/wanyakomochimochi/bracketEx", "license": "MIT", "vscodeVersion": "1.80+" }
Feedback
Bug reports and feature requests are accepted via GitHub Issues.
Your contributions help improve this extension.
By wanyako (Japan)