Skip to content

Code completion

Vitalii Boiko edited this page Nov 14, 2026 · 4 revisions

Reference navigation / Code completion

Navigate to configuration

With Magento integration enabled and PHP support available, open a PHP class or interface and click the XML gutter icon beside its declaration. The Navigate to configuration popup lists matching configuration references and their XML file paths. In 2026.3.6 results include references to the class, its proxies and factories, and static references, including files that do not contain the exact class name; classes whose names merely start with the selected name are excluded. Select a result to navigate to it.

In XML class references, you can also navigate to PHP namespace segments, including segments with uppercase names.

PHP completion for Magento, Hyvä, and Magewire

Completion recognizes return types from Hyvä and Magewire view models, factories, checkout forms, evaluation types, and flash messages, as well as Magento validator, message, and unit-test object factories.

Argument suggestions include area codes, filesystem directories, sort directions, SQL condition operators, and store and website scopes.

Line markers from a Plugin class to a Target class

MFTF support

Support of the most commonly used MFTF XML directives.

  • Page URL completion and reference

  • Action group completion and reference

  • Test extends attribute completion and reference

  • Selector completion and reference

RequireJS mapping support

The RequireJS configuration file requirejs-config.js is commonly used in the different areas of Magento 2.You can use it to create aliases for a component.

  • Reference on injected argument

  • Completion and reference in XML

GraphQL support (Optional, Requires GraphQLJS plugin)

Sometimes, you may need to quickly navigate from GraphQL resolver to schema and vice versa. We added line markers to make that easier. To use this functionality, install the GraphQLJS plugin.

PHP class and method reference in the crontab.xml

Parent menu item reference in the menu.xml

Disabled observers in events.xml.

Line markers from a Test class to a Fixture file (integration and API functional tests)

Code completion for configs

Code completion for system.xml

and config.xml

Clone this wiki locally