How do you turn off formatting for certain file extensions? #5526
Answered
by
smhutch
NullVoxPopuli
asked this question in
Q&A
-
It seems the editor has some incorrect formatting assumptions for *.hbs files. |
Beta Was this translation helpful? Give feedback.
Answered by
smhutch
May 19, 2021
Replies: 1 comment 3 replies
-
We don't support disabling formatting specifically for handlebars files, but there are two approaches you may want to take. Approach 1: disable auto-formatting
Approach 2: disable for HTML files (which also catches handlebars)
Alternatively, you may also add a {
"html.format.enable": false
} |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
NullVoxPopuli
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We don't support disabling formatting specifically for handlebars files, but there are two approaches you may want to take.
Approach 1: disable auto-formatting
editor.format
Approach 2: disable for HTML files (which also catches handlebars)
html.format
Alternatively, you may also add a
.vscode/settings.json
file to your sandbox: