Package for Sublime Text 3. Improve experience with template literals in JavaScript.
Via Package Control:
Open Command Palette → Package Control: Install Package
→ JavaScriptTemplateLiteralEnhancements
There are a few commands for converting string or template literal under the cursor or selection into single/double quoted string or template literal.
Example:
Put a cursor into a string literal:
▼
const str = 'This is my str|ing'
▲
Open Command Palette and run command JavaScriptTemplateLiteralEnhancements: Convert into template literal
.
This string will be converted into template literal:
▼
const str = `This is my str|ing`
▲