Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>wrap-with-template-stringNew to Visual Studio Code? Get it now.
wrap-with-template-string

wrap-with-template-string

Ahmed Al Haddad

|
883 installs
| (2) | Free
Wrap selected text with a template string.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

wrap-with-template-string

Wrap selected text with a template string.

How it works

It works just like emmet wrapping. However, you must include the placeholder $$$ where you want your original text to appear.

Example

We will select each line (with multiple carets)

this
text
will
be
wrapped

then activate the extension: CMD+SHIFT+P -> Wrap Selections With Template String

Write your template string: e.g. console.log($$$);

Execute, and the result will be

console.log(this);
console.log(text);
console.log(will);
console.log(be);
console.log(wrapped);
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft