VS Code Extensions
Wrapcraft

Wrapcraft

by AddonLogic

Wrap the selection in quotes, brackets, braces, or custom HTML/XML tags.

Downloads

0

Rating

(0)

Version

0.1.0

Last updated

Jun 17, 2026

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

  1. Select some text, or place the cursor inside a word.
  2. Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P).
  3. 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.

Related extensions