Skip to content

Instantly share code, notes, and snippets.

@timm0e
Created April 28, 2018 22:07
Show Gist options
  • Save timm0e/2b154b1cff37782096138ca8075ecff8 to your computer and use it in GitHub Desktop.
Save timm0e/2b154b1cff37782096138ca8075ecff8 to your computer and use it in GitHub Desktop.
Enable ejs beautification in beautfy for VS code
{
"html": {
"void_elements": [
"area",
"base",
"br",
"col",
"embed",
"hr",
"img",
"input",
"keygen",
"link",
"menuitem",
"meta",
"param",
"source",
"track",
"wbr",
"!doctype",
"?xml",
"?php",
"basefont",
"isindex",
"%",
"%_",
"%=",
"%-",
"%#",
"%%"
],
"unformatted": [
"a",
"abbr",
"area",
"audio",
"b",
"bdi",
"bdo",
"br",
"button",
"canvas",
"cite",
"code",
"data",
"datalist",
"del",
"dfn",
"em",
"embed",
"i",
"iframe",
"img",
"input",
"ins",
"kbd",
"keygen",
"label",
"map",
"mark",
"math",
"meter",
"noscript",
"object",
"output",
"progress",
"q",
"ruby",
"s",
"samp",
"select",
"small",
"span",
"strong",
"sub",
"sup",
"svg",
"template",
"textarea",
"time",
"u",
"var",
"video",
"wbr",
"text",
"acronym",
"address",
"big",
"dt",
"ins",
"strike",
"tt",
"%",
"%_",
"%=",
"%-",
"%#",
"%%"
]
}
}
// .vscode/settings.json
"beautify.language": {
"js": {
"type": [
"javascript",
"json"
],
"filename": [
".jshintrc",
".jsbeautify"
]
},
"css": [
"css",
"scss"
],
"html": [
"htm",
"html",
"ejs"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment