Answers.Body: <p>Was probably a bug in PHPStorm 2019.1.</p>
  
  <p>Currently using 2019.1.2 and the warning disappeared.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-25T07:17:02.000Z
Answers.LastActivityDate: 2019-06-25T07:17:02.000Z
Answers.UserDisplayName: Bert H
Body: <p>Following code show a warning "template not found" in PHPStorm:</p>
  
  <p><code>{% extends '_layout' %}</code>.</p>
  
  <p>When adding .twig this warning dissapears, but I'd like to keep extends and includes filetype agnostic.</p>
  
  <p>What I've tried so far:</p>
  
  <ol>
  <li>Installing the <a href="https://plugins.jetbrains.com/plugin/7219-symfony-plugin" rel="nofollow noreferrer">Symfony plugin</a> and enabling Twig support.</li>
  <li>Adding the templates folder as a Twig directory, as described <a href="https://stackoverflow.com/questions/35148786/missing-twig-template-in-phpstorm-with-symfony-plugin/46971447?noredirect=1#comment98087639_46971447">here</a>.</li>
  <li>Invalidate PHPStorm cache and restart.</li>
  </ol>
  
  <p>Is there a way to fix this? Or should I use <code>{% extends '_layout.twig' %}</code>?</p>
  
  <p>Using PHPStorm 2019.1</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-16T09:30:43.900Z
Comments.Text: I've been working with Craft and PHP Storm for about 6 years, this is definitely a new issue with the IDE, maybe something in the `2019.1` release. I would be interested to know how to get round this too as I don't like to include files with extensions either.
Comments.UserDisplayName: Jamie Wade
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-18T05:50:57.833Z
Comments.Text: You thinking it's a bug in PhpStorm? Not seeing anything already filed in https://youtrack.jetbrains.com/issues/WI?q=twig%20extension%20template%20not%20found&f=false
Comments.UserDisplayName: Brad Bell
Tags: <craft3>
Title: Missing templates using PHPStorm when using Craft 3
ThreadText: # Missing templates using PHPStorm when using Craft 3
  
  (Asked by: username_0 on 2019-04-16)
  
  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:
  
  1. Installing the [Symfony plugin](https://plugins.jetbrains.com/plugin/7219-symfony-plugin) and enabling Twig support.
  2. Adding the templates folder as a Twig directory, as described [here](https://stackoverflow.com/questions/35148786/missing-twig-template-in-phpstorm-with-symfony-plugin/46971447?noredirect=1#comment98087639_46971447).
  3. Invalidate PHPStorm cache and restart.
  
  Is there a way to fix this? Or should I use `{% extends '_layout.twig' %}`?
  
  Using PHPStorm 2019.1
  
  **Tags:** craft3
  
  > **Comments:**
  > **username_1**: I've been working with Craft and PHP Storm for about 6 years, this is definitely a new issue with the IDE, maybe something in the `2019.1` release. I would be interested to know how to get round this too as I don't like to include files with extensions either.  
  > **username_2**: You thinking it's a bug in PhpStorm? Not seeing anything already filed in https://youtrack.jetbrains.com/issues/WI?q=twig%20extension%20template%20not%20found&f=false  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-06-25. Score: 2 | Accepted answer
  
  Was probably a bug in PHPStorm 2019.1.
  
  Currently using 2019.1.2 and the warning disappeared.
  
  
  ---
  
  