benmatselby / sublime-phpcs

🔍 PHP CodeSniffer, PHP Coding Standard Fixer, Linter, and Mess Detector Support for Sublime Text
Other
811 stars 127 forks source link

Add ability to use variable pathes in settings #184

Closed jfcherng closed 4 years ago

jfcherng commented 6 years ago

This could be useful if the user uses a portable ST he/she could put executables along with his/her ST.

On my Windows PC,

${st_cache_path} = "C:\\Program Files\\Sublime Text 3\\Data\\Cache"
${st_executable_path} = "C:\\Program Files\\Sublime Text 3\\sublime_text.exe"
${st_installed_packages_path} = "C:\\Program Files\\Sublime Text 3\\Data\\Installed Packages"
${st_packages_path} = "C:\\Program Files\\Sublime Text 3\\Data\\Packages"
${user_home_path} = "C:\\Users\\Clover"

My settings:

"php_cs_fixer_executable_path": "${st_packages_path}/my_bin/php-cs-fixer.phar",

Now, php-cs-fixer.phar could be along with my ST. :tada: