microsoft / TypeScript-Sublime-Plugin

IO wrapper around TypeScript language services, allowing for easy consumption by editor plugins
Apache License 2.0
1.72k stars 237 forks source link

Turn selection into template literal interpolation #725

Open idleberg opened 5 years ago

idleberg commented 5 years ago

Sublime Text's default JavaScript syntax package has one very nice feature I miss in this package. A selection within a backtick-enclosed string can be turned into a template literal by pressing $.

js

Other default languages such as Ruby or CoffeeScript also have this feature. It would be amazing if you could add this to the TypeScript package.

Klaster1 commented 4 years ago

This might be relevant: https://github.com/Microsoft/TypeScript/issues/18267