Visual Studio Code PHP

The PHP Intelephense extension for Visual Studio Code provides stubs for \BlackfireProbe internal class, from the Blackfire extension. These stubs gives you code completion on all available methods of BlackfireProbe class.

/docs/vscode-code-completion.gif

Configuration

Blackfire stubs are not enabled by default in Intelephense. To activate them, you need to:

  1. Go to VSCode settings;
  2. Look for Intelephense stubs;
  3. At the end of the stubs list, click on Add Item button;
  4. Add blackfire and validate.
/docs/vscode-settings-code-completion.gif