Prettier plugin stopped working / respecting configured tabSize
See original GitHub issueI can’t tell whether it’s VSCode that stopped using the Prettier plugin when I invoke Format Document on my Javascript files or if it’s the Prettier plugin that itself stopped respecting my settings for tabWidth: 4, but in any case it suddenly has stopped working. This has worked fine for months but all of a sudden stopped working.
Steps taken
- Run Format Document on a Javascript file
Expected results
- Prettier will format the code, respecting my tabWidth (4 spaces) and other settings
Actual results
- The code is formatted (by Prettier or not, I don’t know), and the tabWidth is set to 2.
Troubleshooting I’ve tried
- I tried uninstalling the plugin and reinstalling to no avail.
- I have nothing configured in workspace settings, in user settings, I have:
"prettier.tabWidth": 4,
"prettier.singleQuote": true,
"prettier.jsxBracketSameLine": true,
"prettier.trailingComma": "all",
Any ideas for troubleshooting steps that I should go through to narrow down the issue?
Versions
macOS 10.12.6 VSCode v1.29.1 (bc24f98b5f70467bc689abf41cc5550ca637088e) Prettier-VSCode 1.7.2 Node: v10.14.1
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Prettier is not indenting as specified - Stack Overflow
For Prettier Extension: Go to the extension - cog icon after uninstall button - choose Extension Settings and then Prettier: Tab width.
Read more >How can I change the prettier settings?
I have not installed anything. I am using the WebStorm IDE and with the latest update, it is available using CTRL + SHIFT...
Read more >detected local configuration (i.e. .prettierrc or .editorconfig), vs ...
2. Alter Prettier options in Visual Studio Code settings: Go to the Visual Studio Code Setting by File > Preferences > Settings or...
Read more >Editor Integration - Prettier
If your editor does not support Prettier, you can instead run Prettier with a file watcher. Note! It's important to install Prettier locally...
Read more >indent - ESLint - Pluggable JavaScript Linter
Some problems reported by this rule are automatically fixable by the ... set to 2 will indent case clauses with 4 spaces with...
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 FreeTop 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
Top GitHub Comments
Am I the only one seeing this or is this repo just dead/unmaintained?
My printWidth setting just stopped working as well after months of working flawlessly. This was with 1.7.3.
Rolling back to 1.7.2 fixed it however. Have you tried rolling back a version?