

On the IntelliJ IDEA toolbar, toggle to start listening for incoming PHP debug connections, or choose Run | Start Listening for PHP Debug Connections from the main menu.

Spress twig install#
The easiest and recommended approach is to use Zero-configuration debugging:Ĭhoose and install the browser extension suitable for your browser. Start a debugging session as described in the Ultimate debugging guide. In a Twig template, you can define variables using the designates your configuration environment such as dev or prod. If we refer an asset that is not known to the application (for example, if the asset does not exist yet), IntelliJ IDEA displays the corresponding warning from the Missing Asset inspection. To navigate to the declaration of a template, block, extension, filter, macro, or asset, position the caret at its usage and press Ctrl+B. Provide individual assets and full bundles. Provide Extensions, Filters and Macros, both self-defined or installed from a third party. Provide Templates and Blocks for appropriate functions in any TWIG file. In the editor, press Ctrl+Space to invoke code completion and do any of the following: Switch to the Marketplace tab and use the search field to find the plugins.Ĭlick Install next to each plugin and restart the IDE if prompted. Press Ctrl+Alt+S to open the IDE settings and select Plugins.

The plugins are available only in IntelliJ IDEA Ultimate. This functionality relies on the PHP, Symfony Support, and PHP Annotations plugins that should be installed and enabled in your IDE. Besides the common templates support, the Symfony Plugin provides completion, navigation and code inspection specific to the Twig templating language.
