"prettier.disableLanguages" make the vscode self formatter not work.
See original GitHub issueI wan’t to use vscode’s self “vscode-typescript” to format the js file. So i add this:
"prettier.disableLanguages": [
"javascript"
]
Then prettier doesn’t work for the javascript file , but, i can’t format javascript file now. It seems that the “vscode-typescript” has also been disabled.
So does the “json” file. I need your help >_<#@!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:12
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Disabling languages for Prettier (in VScode) | Zell Liew
Enabling Prettier in specific languages. The first option is to enable Prettier for specific languages you use. You can do this with the...
Read more >Disabling languages for Prettier (in VScode)
The first option is to enable Prettier for specific languages you use. You can do this with the editor.defaultFormatter property. Here's an ...
Read more >Disable Prettier from formatting inline JS in HTML files in VS ...
I use these two extensions with VS Code to validate and format my code automatically on save: Prettier - Code formatter and ESLint....
Read more >Code Quality Tooling with Prettier and ESLint - Wes Bos
The built-in plugin in VS Code for formatting is called Beautifier and it doesn't do as good of a job as ESLint and...
Read more >Getting Started with VS Code | The NTC Mag
If you do not have the Python extension installed already, you will need to ... Screenshot of Prettier Disable Languages Option in VS...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

prettier has updated and this problem is still here 😦 vscode has default json formatter and it’s much appropriate than what prettier does. however,i have to modify the extension.js again, exlude json hope this could be fixed next update…
Try uninstall - install. Is there something in the prettier’s output panel ? In the developer tools ?