Activity Bar
on the left of the main window. If you cannot see it there, open View/Extensions
from the menu. .vsix
installation file from DEVSENSE's download section.View
menu, select Command Palette
(Cmd+Shift+P) and write the command .vsix
extension which you downloaded. VSCode's View - Command Palette
(Cmd+Shift+P), command PHP Tools: Activate extension
. Enter your license key and confirm pressing Enter
. Code > Preferences > Settings
menu.Setting | Description | Values |
---|---|---|
'php.executablePath': ' | Path to the 'php' executable. | Full path to the php program, or not set. |
'php.problems.exclude': null | Path patterns to be ignored from reporting problems. Value can be set to 'true' to ignore all problems or a comma separated list of specific problem codes. | Associative map of paths and whether to exclude them from problems checking. |
'php.format.codeStyle': 'PHP Tools' | Code style standard. | 'PHP Tools', 'PSR-2' |
'phpTools.language': null | Language of PHP Tools IntelliSense. | 'en', 'de', 'es', 'fr', 'ja', 'pt', 'ro', 'ru', 'tr', 'zh', or not set. |
'phpTools.language': null | Show a CodeLens above each test or suite for running or debugging the tests | 'en', 'de', 'es', 'fr', 'ja', 'pt', 'ro', 'ru', 'tr', 'zh', or not set. |
'phpTools.phpUnit.codeLens': true | Show a CodeLens above each test or suite for running or debugging the tests | true or false. |
'phpTools.phpUnit.codeLens': true | Retire or reset all test states whenever the test tree is reloaded | Read more on PHPUnit. |
'phpTools.phpUnit.onStart': ' | Retire or reset all test states whenever a test run is started | Read more on PHPUnit. |
Setting | Description | Values |
---|---|---|
'php.suggest.basic': true | Controls whether the built-in PHP language suggestions are enabled. The support suggests PHP globals and variables. | true or false |
'php.validate.enable': true | Enable/disable built-in PHP validation. | true or false |
'php.validate.executablePath': null | Points to the PHP executable. | Any path to PHP. for example: |/usr/bin/php| |
'php.validate.run': 'onSave' | Whether the linter is run on save or on type. | onSave, onType |
Xdebug
. You can read about Xdebug
features here.Xdebug
extension for your version of PHP using Homebrew. They recommend using PECL to install it. Another option is to compile the source code and then install.Xdebug
and also other tools. You can download PEAR
from its Github page. Installing PEAR/PECL
is as easy as writing the following on the terminal:PATH
run the following command:/usr/local/etc/php/7.2/php.ini
. To check just typePECL
: