-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable code formatting #2
Comments
I also use this extension https://github.com/Lonefy/vscode-JS-CSS-HTML-formatter . I think, for some reason it treats jinja template as html file |
The extension I made only provides colorization of the Jinja templating components. It does inherit from the HTML language as to provide support for Jinja when used with HTML, so other extensions can affect the same document. If anything is reformatting the file, it's not from my extension. It does appear that the extension you mentioned does attempt to format the file when saving. There is a method defined in that project's README to disable that feature if it's causing problems. It appears the feature is relatively new as well, only about a month old - Lonefy/vscode-JS-CSS-HTML-formatter#4 |
Thank you! I already disabled formatting on save, but it would probably be nice to have it for js and html files (jinja files should be left intact). I will create an issue in the formatter repository |
After install JS-CSS-HTML Formatter, you should edit this line in formatter.json. |
If I have following code in the editor:
and I save the file, it reformats it to:
The text was updated successfully, but these errors were encountered: