vs code multiple lines to one line code example

Example 1: multiple line selection vscode

You can just Alt + click for additional cursors

Example 2: vs code how separate one line to multilines

//go to vs code extensions:marketplace
//search for "split line"
//choose what you will like
//best for VUE, react is "Split HTML attributes...."

Example 3: vscode multiple line string

You can break lines using + concatening operator:

template: "<h1>" +
    "</h1>"
Or ` backtick

template: `<h1>
    </h1>`
Or \ backslash

template: "<h1>\
    </h1>"