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

template-string-formatter

krishna gurubasappa kudari

|
169 installs
| (1) | Free
template string formatter
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

String to Template Literal Converter

This Visual Studio Code extension allows developers to quickly convert standard strings enclosed in single (') or double (") quotes to template literals with backticks (``). This conversion is triggered by a simple keyboard shortcut: Ctrl+Shift+` on Windows/Linux and Cmd+Shift+` on macOS, making it easier to insert variables or expressions into strings.

Features

  • Quick Conversion: Convert any string to a template literal with a simple keyboard shortcut.
  • Support for Single and Double Quotes: Works with strings enclosed in both single and double quotes.
  • Streamlines Development: Speeds up the process of working with dynamic strings in JavaScript and TypeScript.

Usage

  1. Place your cursor inside a string (or select the entire string) that you want to convert to a template literal.
  2. Use the keyboard shortcut Ctrl+Shift+` (or Cmd+Shift+` on macOS).
  3. The string will automatically be converted to a template literal, with the original quotes replaced by backticks.

Example: Converting "Hello, ${name}!" by triggering the command will change it to `Hello, ${name}!`.

Installation

Follow these steps to install this extension:

  1. Open Visual Studio Code.
  2. Press Ctrl+P (or Cmd+P on macOS) to open the Quick Open dialog.
  3. Type ext install your-publisher-name.string-to-template-literal-converter and press Enter.
  4. Once found, click on the Install button to install the extension.

Requirements

No specific requirements needed beyond the latest version of Visual Studio Code.

Known Issues

No known issues at this time. If you encounter any problems or have suggestions for improvements, please file an issue on the GitHub repository.

Contributing

Contributions to improve the extension are welcome. Please feel free to fork the repository, make changes, and submit pull requests. For more information on contributing, please see the contributing guide in the repository.

Acknowledgments

  • Thank you to all the contributors who help make this extension better.
  • Special thanks to the Visual Studio Code team for creating an extensible and powerful editor.

Contact

For questions, feedback, or suggestions, please open an issue on the GitHub repository: https://github.com/krishna-kudari/template-string-formatter.

Happy coding!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft