Disabling formatting for selected folders
See original GitHub issueHi!
Following this issue I’m still wondering if there is a way to disable formatting for a given folder. The only way that comes to my mind right now is doing a pre-pass where I’d scan for those folders and pass them as --exclude
parameter. This seems unnecessary as I’d simply like to configure that in .editorconfig
.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
how to disable prettier formatting for individual files or folders
To disable prettier formatting on a single file, open the .prettierignore file and add the name of your file to the document. To...
Read more >VSCode: turn off format on save only in specific directory
I'd like to configure VSCode to not auto-format files in a specific directory. Background: I'm writing a library that renders json into html ......
Read more >Ability to disable code formatting for an entire folder - YouTrack
IDEA-182521 Preventing code reformat for a certain folder when reformatting ... I need to be able to disable reformatting for an entire directory...
Read more >Ignoring Code
Use .prettierignore to ignore (i.e. not reformat) certain files and folders completely. Use “prettier-ignore” comments to ignore parts of files.
Read more >How To Disable VS Code 'formatOnSave' For Specific File ...
Step #1 — Open Settings. By pressing Cmd + , on Mac, you will land on Settings GUI page. · Step #2 —...
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
@tomekpaszek A workaround that you can use today is to flag the folders as containing only generated code.
@tomekpaszek Sorry I thought we got the
generated_code
support from Roslyn for free. Opened a PR to add support for this setting.