i am using a php formatter in VSCode, my problem is that on some view files where there is also html the code get messy, so i am trying to exclude the folder from the formatOnSave
This is my current configuration.
"editor.formatOnSave": true,
"[php]": {
    "editor.formatOnSave": false
}
How can i have the php format on save on all folders except the view one?
If you're using Prettier, then you can create a .prettierignore file and include the directory that you want to exclude from formatting. You may need to go to the extension settings for Prettier and set the file path for .prettierignore for it to take effect.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With