Skip to content

CyrilLeblanc/vscode-magentodev

Repository files navigation

MagentoDev

Make vscode a better IDE for Magento 2

This extension aim to make vscode the best IDE for Magento 2 development by adding the most time saving features.

Features

Automatic module creation

When you create a new valid extension folder in the app/code folder, the extension will automatically create the necessary files with the default content.

demo

Default content for new files

When you create a new file in the app/code folder, the extension will automatically add the default content for the file type.

The following file types are supported:

  • registration.php
  • etc/di.xml
  • etc/module.xml
  • Block/**.php
  • Controller/**.php

Override view file

You can now override a view file in a specific theme by right clicking on the file in the explorer and selecting the MagentoDev: Override in theme option.

TODO List

  • Automatic module creation when a valid folder is created.
  • Context menu option in the explorer to override a view file in a specific theme.
  • Auto clean cache index when needed. (like magento cache clean)
  • Auto remove generated files when needed.
  • Dynamic default content for new files.
    • registration.php
    • di.xml
    • layout.xml
    • Block.php
    • Controller.php
    • events.xml
    • Observer.php
    • db_schema.xml
    • routes.xml
    • webapi.xml
    • system.xml
    • acl.xml
    • menu.xml
    • widget.xml
    • cron_group.xml
    • crontab.xml
    • email_templates.xml
    • template.phtml
  • Snippets for common code blocks.
    • di.preference
    • di.type
    • di.virtualType
    • di.plugin
    • di.arguments
    • events.event
    • layout.container.open-close
    • layout.container.self-closing
    • layout.block.open-close
    • layout.block.self-closing
    • layout.referenceContainer.open-close
    • layout.referenceContainer.self-closing
    • layout.referenceBlock.open-close
    • layout.referenceBlock.self-closing
    • layout.remove
    • layout.move
    • layout.update
  • Commands
    • Re-index all indexes
    • Create a new module
  • Extension translation
    • English
    • French
    • Spanish
    • German