Surround your selection with quotes, brackets, braces, or a custom HTML/XML tag — without retyping the closing half.
Features
Each command wraps the current selection (or the word under the cursor when nothing is selected):
- Wrapcraft: Wrap in Double Quotes — surrounds the text with
"…". - Wrapcraft: Wrap in Single Quotes — surrounds the text with
'…'. - Wrapcraft: Wrap in Backticks — surrounds the text with
`…`. - Wrapcraft: Wrap in ( ) — surrounds the text with
(…). - Wrapcraft: Wrap in [ ] — surrounds the text with
[…]. - Wrapcraft: Wrap in { } — surrounds the text with
{…}. - Wrapcraft: Wrap in Custom Tag — prompts for a tag name (default
div) and wraps the text as<name>…</name>. Any angle brackets you type are stripped automatically.
Usage
- Select some text, or place the cursor inside a word.
- Open the Command Palette (
Ctrl+Shift+P/Cmd+Shift+P). - Run any Wrapcraft command.
The selection is replaced with the wrapped version in a single, undoable edit.
Multi-cursor
Wrapcraft works with multiple selections at once. Every non-empty selection is wrapped with its own delimiters, and every empty cursor falls back to the word beneath it — all in one operation, so a single undo reverts them together. Cursors that sit on no word are left untouched.
License
Released under the MIT License. See the LICENSE file for details.