D
D
Daria Motorina2020-05-25 22:50:27
phpstorm
Daria Motorina, 2020-05-25 22:50:27

How to set up the "Twig: missing template" functionality and create a template by pressing Alt+Enter?

I'm setting up a new project in a storm and found that with the same configuration as in previous projects, I don't want the warning "Twig: missing template" to appear in the render method of the controller, which adds the "Create Template" option by Alt+Enter.
5ecc21279199d640527361.png
What has been done:
- Symfony plugin is enabled, disabled and re-enabled (twig is checked in the list)
- Invalidate caches/restart in a storm
- Editor > Inspections > Symfony > Twig - all inspections are enabled
Global differences - in a running Symfony 4.2 project, in a non-working one - 5.0.8.
What else needs to be configured to make this feature work?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question