question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"prettier.disableLanguages" make the vscode self formatter not work.

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:12
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
ldk18501commented, Dec 19, 2017

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…

1reaction
CiGitcommented, Nov 27, 2017

Try uninstall - install. Is there something in the prettier’s output panel ? In the developer tools ?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found