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

GraphQL support (Optional, Requires GraphQLJS plugin) We added support for this mapping so you can more easily navigate between JS files. 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.
#PHPSTORM COMMUNITY CODE#
When the project is created, the IDE suggests selecting the PHP version and suggests including the Magento source code to PHP include paths.Ĭreate a plugin for a class public method This should be useful for extension developers. New Magento 2 modules can be created from the context menu or by pressing Ctrl(⌘)+N.Ĭreate a new module as a separate project All templates used for generation can be found and edited in Preferences/Settings | Editor | File and Code Templates. This list will be extended in the future. Therefore several actions were created to help with common Magento 2 customizations. There is a bunch of existing open source solutions, however, generating code using the IDE seems to be the most convenient way to go.

The code generation is one of the most wanted feature in Magento community. The Magento PHPStorm Plugin includes a lot of shortcuts addressed to Magento Functional Testing, Require JS mapping, GraphQL, Plugin declaration inspection, code generation, and much more. Your IDE will help with this by suggesting the correct way of doing it. Developers don’t need to spend additional time reading and learning small details about Magento development. Magento standards were taken seriously so that developers won’t see any failures during code review and submission to the Magento Marketplace. Existing functionality was revisited and missing pieces were implemented to complete features. This is the first major release, which is dedicated to improving the Magento developer experience and embedding the development process in the popular PHPStorm IDE.
