-
-
Notifications
You must be signed in to change notification settings - Fork 461
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
Configure which file extensions should be processed #32
Comments
I've made a PR #31 to make prettier to run only on javascript files. Waiting for response from author :) |
I am using the lastest version of
Is there a way to exclude certain file types? I have look through the setting options and did find any related setting available there. Update I think it is caused by VS Code using the default formating rule to format |
It certainly is some other formater. |
I'm posting here becase |
From vscode I think. You can run |
I think the issue people are experiencing is they want prettier to run on save for their .js/.jsx/.ts/.tsx but they don't want format on save for their .html files. As can be seen in this comment for the vscode issue about language specific settings microsoft/vscode#1587 (comment) you can do something like
which will allow for saving typescript files to format with prettier but html files won't be formatted on save. :) |
For an easy copy paste for others: If you want to just disable formatting for .hjs "[handlebars]": {
"editor.formatOnSave": false
} |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I've noticed that with
formatOnSave
as true all files are run through prettier, whether they are js, html, svg, etc...I would like to be able to configure which extensions are and are not processed.
The text was updated successfully, but these errors were encountered: