Haehnchen / idea-php-symfony2-plugin

IntelliJ IDEA / PhpStorm Symfony Plugin
https://plugins.jetbrains.com/plugin/7219
MIT License
912 stars 137 forks source link

Twig -> Stimulus -> jump to #2044

Open jifer opened 1 year ago

jifer commented 1 year ago

There is stimulus plugin for idea that allows to type hint and jump from html attributes to stimulus controllers. This works really good. You can jump from your twig template straight into stimulus controller/action.

Symfony provides twig helper tags for stimulus like stimulus_controller() and stimulus_action(). Unfortunately for now this parameters are just plain text. Would love to see typehinting and linking like it is done with pure attributes.

For now we must decide whats more friendly: using builders in twig but with no linking or using pure html but be able to jump straight into code.

image

jifer commented 1 week ago

Up?