Giter VIP home page Giter VIP logo

vscode-magento-wizard's Introduction

MagentoWizard

Visual Studio Marketplace Version Visual Studio Marketplace Installs Visual Studio Marketplace Downloads Visual Studio Marketplace Rating Visual Studio Marketplace Rating (Stars)

This extension will ease life of the Magento 2 developer by automating some repeating tasks.

Features

  • When you create new file (for example di.xml), extension provides handy default content for it. Works for some xml file, blocks, models, controllers, setup scripts, etc.
  • Creating new extension using MagentoWizard: Create a new extension command:

Creating new extension

  • When editing class file you can inject new dependency by pressing F1 and using MagentoWizard: Inject Dependency command. Start typing \Vendor\ExtensionName\ to get list of classes from that extension.

Dependency Injection

  • You can easily add observer for any event using MagentoWizard: Add Observer command, MagentoWizard even knows what data is passed to observers for some popular events.
  • Use MagentoWizard: Add CRUD Model/ResourceModel/Collection to create all classes needed to access Model data in DB.
  • Ability to run all bin/magento commands using VSC Run Task command (Task provider can be disabled in the settings).
  • Generation of XML Catalog file for Magento 2 XML DTD files. Run MagentoWizard: Generate XML Catalog command and extension will create XML Catalog file in the correct format. It will be added to the XML extension config if that extension is installed.
  • Go to Definition function for class names and template names in XML Layouts.
  • Autocompletion of the class and template names in XML layouts and configurations. More autocompletions would be added soon, stay tuned.

Planned features

  • Extension creation
  • Populating created *.php, *.xml, *.js files by template contents based on their name and location
  • Injecting dependencies
    • Better placement of the assignments
    • Autocomple classes/interfaces from the current extension
    • Autocomple classes/interfaces from 'vendor'
  • Adding Observer
  • Adding Plugin
  • Adding Route, Controller, Block, Layout, Template
  • Adding custom attribute to products, categories, orders, customers, etc.
  • Add Magento tasks like setup:upgrade, cache:clean to VSC tasks
  • Watch for changes in *.xml, *.phtml, *.php and clear corresponding cache type (like magento-cache-clean extension)
  • Go to definition function for class and template referrences in *.xml files
  • More templates

Contributions

This project is open for all kinds of contributions - new templates, new ideas, bug reports, new features, etc. If you found bug or want to request a new feature - just create new issue on github. If you want to add new feature yourself - fork this repo and create pull request.

Release Notes

2.4.0

Autocompletion of the block names in XML layouts.

2.3.0

Autocompletion of the class and template names in XML layouts and configurations.

2.2.0

Added command to reindex workspace (ignoring cached data)

2.1.0

Added templates for CRUD Model, ResourceModel, Collection. New command to create those classes automatically.

2.0.0

Big update of the inner design of extension. Now MagentoWizard indexes all extentions, themes, libraries in the workspace after the launch and keeps index up to date by watching changes in the files. That allows to support autodetection of the Magento root in the workspace, also Magento Wizard now better supports many Magento roots in different workspace folders, also you can override location of the Magento root in settings. Also support for Go to Defintion function for class names and templates in XML layout files was added.

1.3.2

Added option to select the existing XML file to convert when using the 'Generate Catalog' command.

1.3.0

Added MagentoWizard: Generate XML Catalog command

1.2.2

Fixed bug in Plugin template. Added Task Provider for bin/magento commands

1.2.0

Add Plugin command, easily add plugin (interceptor) for any public method.

1.1.4

Added support for extensions in /vendor. Added classes from current extension (including from /vendor) to list in Inject Dependency command, removed duplicates from the list. Added caching of extension file data. Improved Observer class name and DI variable name generation

1.1.3

Fixed bug in php templates. Added templates for catalog_attributes.xml, db_schema.xml, menu.xml, webapi.xml, console command.

1.1.2

Added generation of composer.json when creating new extension. Support for multiple worspace folders. Added classes from app/code/ to Inject dependency list.

1.1.1

New templates for config.xml, cron_groups.xml, systems.xml, sections.xml. Improved all templates with snippet placeholders. Fixed bug which prevented from entering new vendor name. Improved commands.

1.1.0

Adding observers using "MagentoWizard: Add Observer" command

1.0.1

First public release of the extension

vscode-magento-wizard's People

Contributors

dependabot[bot] avatar netstorm84 avatar viperet avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.