Haehnchen / idea-php-shopware-plugin

Shopware Plugin for PhpStorm which extends Symfony Plugin
MIT License
54 stars 9 forks source link

Feature Request: context menu entry "Extend in Theme" for twig files #123

Closed RafaelKr closed 2 years ago

RafaelKr commented 3 years ago

I would love to have a context menu entry where I can right click on a twig file and can select "Extend in theme". Then it's automatically copied to that theme with the correct folder structure and already contains the correct sw_extends line {% sw_extends '@Storefront/storefront/<...>.html.twig' %}.

This should also work when extending from another theme like {% sw_extends '@SwagExampleTheme/storefront/<...>.html.twig' %}

RafaelKr commented 2 years ago

Found another solution. I'm now using the official Shopware 6 Plugin which has an Extend this block feature: https://github.com/shopwareLabs/shopware6-phpstorm-plugin