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.

Not formatting anything

See original GitHub issue

Just switched to VS Code from Atom. I only have the prettier extension installed currently.

No matter what I do, I can’t get Typescript or JSON files formatted using Format Document in the command palette.

My settings: “prettier.singleQuote”: true, “prettier.trailingComma”: “none”, “prettier.printWidth”: 120, “prettier.requireConfig”: false, “prettier.eslintIntegration”: false

I’m using 1.23.0 VS Code Insiders and Prettier 1.3.1.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
CiGitcommented, Apr 30, 2018

@Nxt3 I’ve not tried insider version lately, but we had report that reinstalling (cleanly) prettier would correct some strange issues. Seems this is what you did with “stable” version.

Prettier doesn’t format ruby (rails)

0reactions
github-actions[bot]commented, Apr 13, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does Prettier not format code in VS Code? - Stack Overflow
Click on Preferences: Open Settings (JSON) from the suggestion dropdown. Inside the settings.json file, Check if "[html]" key exists. If the key ...
Read more >
Format on Save (prettier) stopped working with latest update
My biggest problem is after setting a defaultFormatter, anything not formatted with Prettier (Go, Terraform, etc) throws "prettier can't ...
Read more >
VS Code - You don't need a formatting extension (Prettier and ...
You configure how the formatting is done with the following settings: css. format. enable - Enable/disable default CSS formatter.
Read more >
Reformat and rearrange code | PyCharm Documentation
In the Settings/Preferences dialog ( Ctrl+Alt+S ), go to Editor | Code Style. Switch to the Formatter tab and in the Do not...
Read more >
Using Prettier and ESLint to automate formatting and fixing ...
Even if Prettier does not format your code 100% the way you like, ... specific to your project and whatever flavor of JavaScript...
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