Search code examples
phpphpstorm

PhpStorm Started Recognising .php Extension as Plain Text


Everything was working fine until now, and all the files I was creating as .php was being converted to .php file with detecting, coloring and auto-correcting open. I used to create files as created I User.php instead of `User.

PhpStorm randomly started recognising .php extension as plain text and without extension as php file.

However, now something happened and it is shown as (see Profile is not detected asphp file):

enter image description here and is shown as a plain text file:

enter image description here

When I remove the .php, it gets detected:

enter image description here

And then it gets detected as PHP file enter image description here], but the extension is wrong. [4], but then it doesn't show the extension in the Finder

enter image description here


Solution

  • Found my answer.. Settings > File Types > Check under PHP and Text and delete Profile