Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/phts/javascripttemplateliteralenhancements

Package for Sublime Text 3. Improve experience with template literals in JavaScript.
https://github.com/phts/javascripttemplateliteralenhancements

javascript js sublime-package sublime-text sublime-text-3 template-literals

Last synced: 2 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# JavaScriptTemplateLiteralEnhancements

[![Package Control](https://img.shields.io/packagecontrol/dt/JavaScriptTemplateLiteralEnhancements.svg)](https://packagecontrol.io/packages/JavaScriptTemplateLiteralEnhancements)

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

## Install

**Via Package Control**:

Open Command Palette → `Package Control: Install Package` → `JavaScriptTemplateLiteralEnhancements`

## 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:

```js

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:

```js

const str = `This is my str|ing`

```