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

template-string-expander

maptz

|
5,036 installs
| (3) | Free
Converts string literals into template strings in Javascript, Typescript and CSharp.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Template String Expander

A Visual Studio Code extension for converting "string literals" into $"template strings".

String Literals

Features

This extension currently supports CSharp, Javascript and Typescript files. To use the extension, follow these instructions:

  • Open a file in one of the supported languages and place your caret within a string literal.
  • Open the command palette (Ctrl+Shift+P) and select the Convert to Template String command, or press the default key chord ctrl+m ctrl+2.

For CSharp documents, a string like "Some string" will be converted to a template string $"Some string". For Javascript and Typescript documents, a string literal "Some string" will be converted to a template string Some strign.

The extension exposes the following command which can be run to convert the string.

  • stringTemplateExpander.convertToTemplateString

Other Extensions

View other extensions from Maptz

Requirements

No requirements currently.

Extension Settings

The extension doesn't expose any settings.

Known Issues

No known issues to-date. Please file a bug on github.

Release Notes

1.0.3

  • Updates to dependencies.

1.0.0

  • Release version of extension.

0.0.7

  • Fixed issue with Javascript and Typescript.

0.0.6

  • Added TypescriptReact support. Thanks @mattread90. See [Pull #2](https://github.com/maptz/maptz.vscode.extensions.templatestringexpander/pull/2).

0.0.5

  • Added React support. Thanks @mattread90. See [Pull #1](https://github.com/maptz/maptz.vscode.extensions.templatestringexpander/pull/1).

0.0.1

  • Initial alpha release of the extension.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft