vs code format ejs code example
Example 1: vscode ejs formatter
// install digitalbrainstem.javascript-ejs-support
//then add this to settings.json
{
"html.format.templating": true
}
Example 2: ejs formatter vscode
// Go to vscode settings (Ctrl + Comma) then search for "files.associations"
// Finally add following lines into your vscode settings
// (or add that using vscode GUI settings by providing key (*.ejs) and value (html))
"files.associations": {
"*.ejs": "html"
}