junstyle / vscode-php-cs-fixer

PHP CS Fixer extension for VS Code

Home Page:https://marketplace.visualstudio.com/items?itemName=junstyle.php-cs-fixer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

require config before formatting?

davidsalazar opened this issue · comments

Prettier has an option to require a config before formatting. Does your extension have anything similar? I don't see it. I would like to keep my format on save but for it to ignore certain projects, any way I can do that?

"php-cs-fixer.exclude": [],

I think you're stating that I need to add this to my .vscode/settings.json workspace right? Although this will work. phpcsfixer still runs when you click save. I think the prettier config makes more sense where it won't run at all if they're not a configuration.

I just went ahead and disabled it by putting this on my project vs code settings.

{
    "[php]": {
		"editor.defaultFormatter": ""
	},
}