Skip to content

maptz/maptz.vscode.extensions.templatestringexpander

Repository files navigation

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.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.

0.0.5

  • Added React support. Thanks @mattread90. See Pull #1.

0.0.1

  • Initial alpha release of the extension.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •