Page 1 of 1

Integration in PhpStorm

Posted: Wed Feb 05, 2025 4:55 am
by Mitu100@
To add the comment, show the changes, and come the new PhpStorm plugin update to shine. The plugin provides intentions (CTRL/CMD+ENTER) to add or update the comment block. It also provides inspections to show if the block is outdated or when a block misses a comment block.

base html twig 1
To demonstrate a change, I have israel telegram screening overwritten layout_scroll_up_inner block from @Storefront/storefront/layout/scroll-up.html.twig in Shopware 6.6.5.0 and updated afterward to 6.6.6.1. In that version bump, the block got accessibility updates.

base html twig 2
Therefore, we can open the intention and show the difference between the block we have and the block we have extended.

base html twig 3base html twig 4
Add comment block automatically
The plugin can add the comment block automatically when you extend a block. For this, the inspection: Shopware versioning block comment is missing needs to be activated.

settings
After this, all blocks you extend will be automatically added. The inspection also shows all blocks in your plugin/theme with missing comment blocks, which can be added with the quick fix (CTRL/CMD+ENTER).

To add the block to all template files, you should use PhpStorm's code inspect feature. This will show all files with missing comment blocks and allow you to add them with a single click.