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 1K
  • Mac 327
  • Linux 262
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 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23
Windows 0 1 3 2 1 3 4 4 3 2 7 2 6 3 0 3 4 2 4 2 5 2 3 10 5 2 2 5 3 1 12 1 3 5 0 0 4 3 1 4 6 4 1 1 3 7
Mac 3 0 2 2 0 0 1 0 0 1 0 0 0 1 0 1 1 1 2 0 0 0 0 3 2 0 0 1 0 0 0 0 0 1 1 0 0 0 1 2 0 1 1 1 0 3
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 2 0 2 2 0 1 0 0 0 1 1 0 0 0 0 0 1 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`