Following code show a warning "template not found" in PHPStorm:
{% extends '_layout' %}.
When adding .twig this warning dissapears, but I'd like to keep extends and includes filetype agnostic.
What I've tried so far:
- Installing the Symfony plugin and enabling Twig support.
- Adding the templates folder as a Twig directory, as described here.
- Invalidate PHPStorm cache and restart.
Is there a way to fix this? Or should I use {% extends '_layout.twig' %}?
Using PHPStorm 2019.1
2019.1release. I would be interested to know how to get round this too as I don't like to include files with extensions either. – Jamie Wade Apr 16 '19 at 09:30