ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Java​Script​Template​Literal​Enhancements

by phts ST3

Package for Sublime Text 3. Improve experience with template literals in JavaScript.

Labels javascript

Details

Installs

  • Total 2K
  • Win 2K
  • Mac 365
  • Linux 281
Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28
Windows 0 1 3 3 2 2 1 2 3 2 3 1 2 4 2 2 2 1 1 2 1 0 2 4 4 0 3 1 0 1 3 3 1 2 2 2 1 3 5 3 1 3 2 7 2 1
Mac 0 0 1 0 0 1 1 0 2 1 1 0 0 1 1 0 0 0 0 1 0 1 0 0 0 0 1 1 0 1 0 0 0 0 1 0 0 1 0 0 1 0 2 1 4 0
Linux 0 0 0 1 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 2 0 3 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

JavaScriptTemplateLiteralEnhancements

Package Control

Package for Sublime Text 3. Improve experience with template literals in JavaScript.

Install

Via Package Control:

Open Command Palette → Package Control: Install PackageJavaScriptTemplateLiteralEnhancements

Usage

Convert into template/string literal

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`