Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Template literals #39

Open
idleberg opened this issue Jul 28, 2019 · 0 comments
Open

Template literals #39

idleberg opened this issue Jul 28, 2019 · 0 comments

Comments

@idleberg
Copy link

Summary

In languages such as Ruby or CoffeeScript, Atom has a feature to quickly change a selection inside a string into a template literal. Since template literals are supported in TypeScript, it would be nice to have the same feature for the language.

Steps:

  1. Select any part inside a string (enclosed in backticks), e.g. name
  2. Press $ key
  3. Selection becomes ${name}

Motivation

Existing feature in Ruby, CoffeeScript and possible other bundled Atom syntax languages.

Additional context

Here's an animation showcasing the feature when working in CoffeeScript

cs

@idleberg idleberg changed the title Template litereals Template literals Jul 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant