Introduction
Visual Studio Code Plugin for Magento 2 is a free VS Code addon that you may install to boost the capabilities of your Visual Studio Code. Furthermore, it is an advanced Magento 2 AutoSuggestion extension for Visual Studio Code.
Note- To use Visual Studio Code Plugin for Magento 2, Magento root folder should be opened in the workspace.
Features
- It helps to auto-suggest a list of Magento’s core class namespaces.
- It auto-suggests a list of class functions whose object is injected in the constructor.
- Boilerplates available for basic XML and PHP functionalities can be invoked by using the prefix ‘!wk’.
- One can create basic module files (module.xml and registration.php) using a command palette.
- One can also update the namespaces for newly created files.
- The event name will show in suggestion in the events.xml file.
Installation
Launch VS Code Quick Open (Ctrl+P
), paste the following command to install , and press enter.
Command- ext install Webkul.automagedev
Wants to know more about Installation, Visit Here.
Auto Suggestion in Visual Studio Code Plugin for Magento 2
While writing a code, the related suggestions will appeared just after entering the word Magento.
List of Class Functions
We can see the related list of class functions whose object is injected in the constructor.
Create Basic Module Files
We can create basic modules files (module.xml and registration.php) using command palette.
Event Name Suggestion
The name of the event will appear in the events.xml file as a suggestion.
In conclusion, this plugin helps you to make your visual code experience smooth.
So, that’s all about the Visual Studio Code Plugin for Magento 2, still have any issue feel free to raise a ticket and let us know your views to make the module better https://webkul.uvdesk.com