All Projects → markshust → phpstorm-magento-live-templates

markshust / phpstorm-magento-live-templates

Licence: other
PHPStorm Live Templates for Magento 2

Projects that are alternatives of or similar to phpstorm-magento-live-templates

Magento2 Phpstorm Plugin
PHPStorm Plugin for Magento 2
Stars: ✭ 294 (+500%)
Mutual labels:  magento, magento2, phpstorm
Slider-M2
Slider extension for Magento 2.x
Stars: ✭ 17 (-65.31%)
Mutual labels:  magento, magento2
magento-2-infinite-scroll
Magepow Infinite Scroll extension Free hepls website loading content and products without reloading page
Stars: ✭ 17 (-65.31%)
Mutual labels:  magento, magento2
module-conflict-detector
magefan.com/magento2-conflict-detector
Stars: ✭ 40 (-18.37%)
Mutual labels:  magento, magento2
magento2-allegro
Magento 2 Allegro Integration module
Stars: ✭ 25 (-48.98%)
Mutual labels:  magento, magento2
Magento2 SomethingDigital UpgradeHelper
No description or website provided.
Stars: ✭ 16 (-67.35%)
Mutual labels:  magento, magento2
magento2-language-tr tr
Magento2 Turkish Translation / Magento2 Türkçe Çevirisi
Stars: ✭ 28 (-42.86%)
Mutual labels:  magento, magento2
magento2-db-log-cleaner
Magento2 Cron Log Cleaning
Stars: ✭ 23 (-53.06%)
Mutual labels:  magento, magento2
magento2-edit-order-email
Magento2 - Edit Order Email from Admin
Stars: ✭ 30 (-38.78%)
Mutual labels:  magento, magento2
magento2-ansible-vagrant
Ⓜ️2️⃣ Ansible provisioned Ubuntu 16.04 vagrant box for Magento2 development.
Stars: ✭ 25 (-48.98%)
Mutual labels:  magento, magento2
rapidez
Headless Magento - with Laravel, Vue and Reactive Search 🚀
Stars: ✭ 31 (-36.73%)
Mutual labels:  magento, magento2
magento2-module-simpledata
The SimpleData module simplifies calling Magento data structures.
Stars: ✭ 82 (+67.35%)
Mutual labels:  magento, magento2
Worldpay-Magento2-CG
Worldpay Magento 2 Plugin for Worldpay Corporate Gateway
Stars: ✭ 15 (-69.39%)
Mutual labels:  magento, magento2
module-notifications
Notify the Magento 2 admin user about disabled caches or new customer reviews.
Stars: ✭ 20 (-59.18%)
Mutual labels:  magento, magento2
module-dsu
No description or website provided.
Stars: ✭ 18 (-63.27%)
Mutual labels:  magento, magento2
Brazilian-Solutions
Este repositório permite a discussão da comunidade brasileira Magento sobre módulos e soluções para o mercado brasileiro.
Stars: ✭ 19 (-61.22%)
Mutual labels:  magento, magento2
m2devbox
🚀 Head start your Magento 2 extension development with pre-configured Docker environments.
Stars: ✭ 18 (-63.27%)
Mutual labels:  magento, magento2
magento2-installer-bash-script
Simplistic Magento 2 Installer Bash Script
Stars: ✭ 38 (-22.45%)
Mutual labels:  magento, magento2
module-dsu-client
No description or website provided.
Stars: ✭ 17 (-65.31%)
Mutual labels:  magento, magento2
centminmod-magento2
Magento 2.2.2 Install Guide For Centmin Mod Nginx LEMP Stacks
Stars: ✭ 16 (-67.35%)
Mutual labels:  magento, magento2

ABANDONED!

THIS PROJECT IS NO LONGER MAINTAINED

You are free to continue using these live templates, but this project is abandoned and no longer maintained.

markshust/phpstorm-magento-live-templates

PHPStorm Live Templates for Magento 2

Maintained - No

Table of contents

Installation ⚠️

Until the PHPStorm issue IDEA-184753 is resolved, the normal installation process for read-only repositories will not work.

Instead, you will need to install this collection of templates manually. You can do this by getting your configuration directory from https://www.jetbrains.com/help/idea/tuning-the-ide.html, then symlinking the Magento.xml template into it's template directory.

For example on a Mac you would:

# clone out the repo
git clone [email protected]:markshust/phpstorm-magento-live-templates.git ~/Sites/phpstorm-magento-live-templates

# setup a symlink to the template within the templates directory
# ln -s ~/Sites/phpstorm-magento-live-templates/templates/Magento.xml ~/Library/Application\ Support/JetBrains/<product><version>/templates/Magento.xml

# for example, PHPStorm 2020.2:
mkdir ~/Library/Application\ Support/JetBrains/PhpStorm2020.2/templates/
ln -s ~/Sites/phpstorm-magento-live-templates/templates/Magento.xml ~/Library/Application\ Support/JetBrains/PhpStorm2020.2/templates/Magento.xml

After restarting PHPStorm, the live templates should then show up at Preferences > Editor > Live Templates > Magento.

Please upvote the issue at IDEA-184753 and show your support for it in a comment, so the following steps can be used instead once it is resolved:

  1. In PHPStorm, Go to Preferences > Tools > Settings Repository
  2. Add a new Read-only Source with the URL: https://github.com/markshust/phpstorm-magento-live-templates
  3. Restart PHPStorm

Usage

With a file open, start typing the live template abbreviation. If a lot of other autocompletes show up, tap the up arrow (live template abbreviations appear last).

Available live templates

  • magentoAclXml: template for acl.xml
  • magentoConfigClassPreferenceXml: template for class preference within config XML
  • magentoConfigPluginXml: template for plugin within config XML
  • magentoCspXml: template for csp_whitelist.xml
  • magentoDiXml: template for di.xml
  • magentoEventXml: template for event.xml
  • magentoLayoutsXml: template for layouts.xml
  • magentoLayoutViewModelXml: template for view model within layout XML
  • magentoLayoutXml: template for layout.xml
  • magentoMenuXml: template for menu.xml
  • magentoModuleXml: template for module.xml
  • magentoRegistrationPhp: template for registration.php
  • magentoRoutesXml: template for routes.xml
  • magentoWebapiXml: template for webapi.xml

Contributing

  1. Find the PHPStorm configuration directory for your operating system
  2. Inside that directory is a templates directory
  3. You can clone this repo out to this directory and submit edits to the Magento.xml file

All live templates are to be suffixed with either Xml or Php depending on the scope. This is to avoid confusion since a lot of templates will be created over time.

Free Course

This course is sponsored by M.academy. Level up your Magento 2 skills with a collection of resources including lessons, courses & more.

M.academy

If you find this repo useful, you may enjoy the following course to learn more about relatively unknown tips, tricks & improvements for PHPStorm:

Course image

Obscure PHPStorm Hacks

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].