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 865
  • Win 579
  • OS X 165
  • Linux 121
Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10
Windows 3 0 1 3 5 3 2 2 1 4 3 0 6 2 3 3 1 1 0 1 2 3 3 2 3 2 0 2 2 4 1 4 4 1 0 4 0 2 1 8 3 3 1 3 1 1
OS X 1 2 0 0 0 1 0 1 0 0 0 2 0 0 0 0 0 1 0 3 2 0 0 0 1 1 1 1 0 0 0 0 0 3 2 1 0 0 1 0 0 0 0 0 2 1
Linux 0 2 0 0 0 1 0 0 0 0 0 1 0 0 1 1 0 0 1 0 0 1 2 1 0 1 0 0 2 0 1 0 0 0 0 1 1 0 1 0 1 0 1 0 0 1

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`