ikappas / vscode-phpcs

PHP CodeSniffer for Visual Studio Code
MIT License
128 stars 56 forks source link

Multiple environments #165

Closed mreduar closed 1 year ago

mreduar commented 4 years ago

I work with MacOS during the day and with Windows at night. I would like to have an option to configure the phpcs executable in these two environments. Because when I enter Windows for example does not work the same path as in MacOS /usr/local/bin/phpcs

It should be noted that I have my settings synchronized between the two machines with the Settings Sync plugin

Any suggestions?

dixiedream commented 4 years ago

I have a similiar problem. I frequently switch from Win to Mac to Linux, i primarly use Docker for mu environment setup, the issue is that on Windows the extension is looking for a .bat file but the binary is compiled in a linux container. It would be nice to set the executable path with a wildcard es. /my/bin/path/phpcs.*