Visual studio PHP CS Fixer赢得';t在Visual Studio代码中加载.php cs文件

Visual studio PHP CS Fixer赢得';t在Visual Studio代码中加载.php cs文件,visual-studio,php-cs-fixer,Visual Studio,Php Cs Fixer,我从下载并安装了用于VSCode的PHP CS Fixer扩展(由junstyle提供)和官方的PHP-CS-Fixer-v2.phar文件。我创建了一个名为config.php-cs的文件,并在其中粘贴了参考配置代码: return PhpCsFixer\Config::create() ->setRules(array( '@PSR2' => true, 'array_indentation' => true, ..

我从下载并安装了用于VSCode的PHP CS Fixer扩展(由junstyle提供)和官方的PHP-CS-Fixer-v2.phar文件。我创建了一个名为config.php-cs的文件,并在其中粘贴了参考配置代码:

return PhpCsFixer\Config::create()
    ->setRules(array(
        '@PSR2' => true,
        'array_indentation' => true,
         ....
我将这两个文件都放在C:\wamp64\www\configuration\u php中\

这是我的settings.json

{
    "workbench.iconTheme": "file-icons",
    "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
    "editor.formatOnPaste": true,
    "workbench.colorTheme": "One Dark Pro",
    "editor.fontLigatures": true,
    "editor.lineHeight": 22,
    "files.trimTrailingWhitespace": true,
    "editor.fontWeight": "400",
    "editor.renderWhitespace": "all",
    "editor.tabSize": 2,
    "editor.cursorStyle": "line",
    "editor.insertSpaces": false,
    "prettier.useTabs": true,
    "terminal.integrated.fontSize": 15,
    "javascript.validate.enable": false,
    "editor.formatOnSave": true,
    "files.autoSave": "off",
    "window.zoomLevel": 0,
    "editor.fontFamily": "JetBrains Mono, Consolas, 'Courier New', monospace",
    "editor.cursorBlinking": "smooth",
    "editor.formatOnSaveTimeout": 5000,
    "php-cs-fixer.executablePath": "C:\\wamp64\\www\\configuration_php\\php-cs-fixer-v2.phar",
    "php-cs-fixer.config": "C:\\wamp64\\www\\configuration_php\\config.php_cs",
    "php-cs-fixer.onsave": true,
}
我可以告诉我的编辑器考虑了可执行路径,因为如果我在路径中输入了错误,就会收到错误消息。问题在于配置路径。VSCode似乎完全忽略了它,如果我在路径或文件内容中引入错误,它不会使用配置文件或引发任何错误


我遗漏了什么吗?

对不起,伙计们,我是个土豆,我写的是“php cs”而不是“php_cs”。关闭。

不客气