Hướng dẫn php-cs-fixer php general error

I had the same error before and I solved it by running visual studio code as Administrator.

My environment:
Windows 8.1
PHP Version 5.4.31

VS setting for the extension:
{
"php-cs-fixer.executablePath": "C:\php-cs-fixer.phar",
"php-cs-fixer.onsave": false,
"php-cs-fixer.rules": "@psr2",
"php-cs-fixer.autoFixByBracket": true,
"php-cs-fixer.autoFixBySemicolon": false,
"php-cs-fixer.formatHtml": true,
}

VS code installed path:
C:\Program Files [x86]\Microsoft VS Code\

Mar 10, 2017 update
I found that if install VS code somewhere else rather than , like C:\Microsoft VS Code, then you don't need to "run as Administrator"

The folder does exist. or do you run the tool outside of the project directory?

current php_cs i use:

Chủ Đề