Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 637 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 637 Bytes

Getting started

example

This plugin converts a string to template strings in following cases.

  • When ${ is typed:
// | - is the cursor
let x = 'Hello, ${|'
let x = `Hello, ${|}`

// in JSX
const p = <p class="Hello, ${|"></p>
const p = <p class={"Hello, ${}"}></p>

Press undo, to undo the conversion if you do not want template strings.

let x = 'Hello, ${|'
let x = `Hello, ${|}` // press undo
let x = "Hello, ${|}"

This plugin is inspired by Template String Converter by Megan Rogge.