Instantly switch between your Symfony controllers and their associated Twig templates in a single click.
Features
Controller → Template: in a PHP file, every string ending in .twig that points to an existing file under templates/ becomes a clickable link opening that template.
Template → Controller(s): in a Twig file, a CodeLens (← Jump to controller) appears at the top of the file when one or more PHP files reference it. Clicking it opens the controller directly, or shows a peek list to choose between several matches.
The vendor/ and var/ folders are ignored when searching for references.
Requirements
A Symfony-style project layout, with templates stored under a templates/ folder at the workspace root.
A Twig language extension providing the twig language id (for the CodeLens to activate on .twig files).
Known Issues
None currently known. Feel free to open an issue if you find one.