Using deno
formatter in html-like files.
For the html and css parts js-beatify is used.
Config default formatter in .vscode/settings.json
file:
{
"[html]": {
"editor.defaultFormatter": "dayan.vscode-deno-html-tools"
}
}
You associate another file extension with files.associations
config:
{
"files.associations": {
"*.tt": "html"
}
}
Must have deno installed
You can control the settings for this extension through your VS Code settings
page. You can open the settings page using the Ctrl+,
keyboard shortcut. The
extension has the following configuration options:
-
denoHTMLTools.lint
: Enable diagnostics. boolean, defaultfalse
-
denoHTMLTools.lintOnSave
: If true, diagnostics will made only on file save. boolean, defaultfalse
-
denoHTMLTools.denoConfig
: The file path to a deno configuration file. The path can be either be relative to the workspace, or an absolute path. string, defaultnull