A way to enable/disable prettier via the command menu
See original GitHub issueCurrently, the only shortcut we have is format
. But it would be great to have a way to quickly enable/disable prettier.
Asking because I switch from project to another and not all of them use prettier so I have to enable or disable it manually.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
How to disable prettier in VSCode for a specific project?
On Windows/Linux - File > Preferences > Settings · On macOS - Code > Preferences > Settings.
Read more >How to configure Prettier and VSCode - Gleb Bahmutov
Make sure local workspace settings have auto-format on save enabled. Open . · Prettier extension might be disabled by VSCode. Make sure the...
Read more >Disable prettier for a single file - javascript - Stack Overflow
To exclude files from formatting, add entries to a .prettierignore file in the project root or set the --ignore-path CLI option. .prettierignore ......
Read more >How To Format Code with Prettier in Visual Studio Code
With the Prettier extension installed, you can now leverage it to format your code. To start, let's explore using the Format Document command....
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
@robwise Yup, I’ll take this one. Since I already added one command, this seems like a natural follow-up.
I think it would make sense to have a dotfile on the project directory to enable it.
Doing so I can keep it always on and have it active only in projects that explicitly states they make use of it.
Alternatively you may read the package.json and enable it only if it is listed as dependency.