Open badochov opened 5 years ago
This is likely to be controllable with a setting. Will get back to you soon.
The best you can do is add "style"
to the "unformatted"
or the "content_unformatted"
options in either the .jsbeautifyrc
file, or within the beautify.config
setting of VS Code.
NOTE: Please provide code snippets instead of screen shots. Your issue needs to be replicated, and we need the failing code (text) to do this.
Provide the settings you use:
{ "editor.minimap.enabled": false, "editor.renderControlCharacters": true, "breadcrumbs.enabled": false, "editor.renderWhitespace": "none", "editor.formatOnSave": true, "workbench.statusBar.visible": true, "workbench.colorTheme": "Material Theme Palenight High Contrast", "editor.multiCursorModifier": "ctrlCmd", "color-highlight.markerType": "dot-before", "python.linting.pylintPath": "pylint", "python.linting.pylintArgs": [ "--load-plugins", "pylint_django" ], "python.linting.pep8Enabled": true, "[python]": { "editor.defaultFormatter": "ms-python.python", }, "python.formatting.autopep8Args": [ "-a" ], "html.suggest.html5": true, "html.validate.scripts": true, "html.validate.styles": true, "html.format.enable": true, "C_Cpp.updateChannel": "Insiders", "workbench.iconTheme": "material-icon-theme", "workbench.colorCustomizations": {}, "emmet.triggerExpansionOnTab": true, "emmet.showSuggestionsAsSnippets": true, "editor.snippetSuggestions": "top", "[jsonc]": { "editor.defaultFormatter": "vscode.json-language-features" }, "beautify.language": { "css": [ "css", "scss" ], "html": [ "htm", "html", "django-html" ] // ^^ providing just an array sets the VS Code file type } }
Action performed
NOTE: i know that you do not support django-html so it's more of feature request than a bug Saved document format on save trigerred