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
.twigthat points to an existing file undertemplates/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
twiglanguage id (for the CodeLens to activate on.twigfiles).
Known Issues
None currently known. Feel free to open an issue if you find one.
Release Notes
0.0.1
Initial release: controller → template links, template → controller CodeLens, French localization.