microsoft / microsoft/TypeScript-Sublime-Plugin
Turn selection into template literal interpolation
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 236
- Avg merge
- 21d 13h
- Merged PRs (30d)
- 1
Description
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 $.

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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the TypeScript package's selection handling and syntax transformation entry points, then compare how Sublime Text handles a selection inside a backtick-enclosed string. The feature is done when pressing $ converts the selection into template literal interpolation, matching the behavior shown in the linked GIF.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100