kokororin / vscode-phpfmt

Integrates phpfmt into VS Code
https://marketplace.visualstudio.com/items?itemName=kokororin.vscode-phpfmt
BSD 3-Clause "New" or "Revised" License
130 stars 30 forks source link

How do i configure phpfmt? #77

Closed geniusunil closed 1 year ago

geniusunil commented 5 years ago

Everybody is talking about changing settings like: "phpfmt.php_bin": "\"C:\Program Files\php\php.exe\""

But where do i paste this?

Amanpeet commented 5 years ago

in settings.json of your VS code. you can access it easilly, just press F1 or Ctrl+Shift+P and type settings but its recommended to set this in your system's path instead doing in settings.json. it will automatically pick up from there.

kanlukasz commented 5 years ago

Everybody is talking about changing settings like: "phpfmt.php_bin": ""C:\Program Files\php\php.exe""

@geniusunil - keep in mind that in Win you have to use double \\.

The correct setting is: "phpfmt.php_bin": "C:\\Program Files\\php\\php.exe",

Ps. If you use PHP with XAMPP it will be: "phpfmt.php_bin": "C:\\xampp\\php\\php.exe",