Skip to content

Main features

vitaliy edited this page Jul 6, 2026 · 9 revisions

Code generation

Code generation is one of the most wanted features in the Magento community. There is a bunch of existing open-source solutions, however, generating code using the IDE seems to be the most convenient way to go. Therefore several actions were created to help with common Magento 2 customizations. This list will be extended in the future. All templates used for generation can be found and edited in Preferences/Settings | Editor | File and Code Templates. To use this functionality you need to right-click on the module directory (some items are available for other dirs) and select a needed item in the context menu.

New module

New Magento 2 modules can be created from the context menu or by pressing Ctrl(⌘)+N.

Inspections

Plugin inspection in the scope of PHP class

Inspection highlights the following cases:

  • Plugin declared for a final class
  • Plugin declared for a final method
  • Plugin declared for a constructor
  • Plugin declared for a not public method
  • Plugin declared for a static method
  • Incompatible parameter
  • Redundant parameter

Reference navigation / Code completion

Line markers from a Plugin class to a Target class

Copy Magento Path action

Ability to copy Magento Path for JS, PHTML, CSS, and other files.

MCP integration

Magento-specific IDE tools can be exposed through JetBrains MCP. The integration includes consolidated magento_scaffold and magento_inspect tools, Magento CLI environment discovery, and bundled agent skills for generation and inspection workflows.

In non-PHP JetBrains IDEs, MCP support is limited to PHP-independent tools such as get_magento_root_path and describe_magento_cli_environment. PHP-backed scaffold and inspection tools require a PHP-capable IDE.

Run the Upgrade Compatibility Tool

Clone this wiki locally