Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/phts/javascripttemplateliteralenhancements
- Owner: phts
- License: mit
- Created: 2018-07-29T19:13:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-03T09:30:11.000Z (about 6 years ago)
- Last Synced: 2024-11-28T15:11:44.511Z (2 months ago)
- Topics: javascript, js, sublime-package, sublime-text, sublime-text-3, template-literals
- Language: Python
- Homepage: https://packagecontrol.io/packages/JavaScriptTemplateLiteralEnhancements
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`
▲
```