mstdmstd
mstdmstd

Reputation: 3081

Why PhpStorm does not work with php-file as with php file

I do not know what happened with my PHP file in PhpStorm 2019.2.3, but it does not work with it as with php file. I mean lack of context help, code reformat etc...

enter image description here

Which options did I changes and how to restore it?

Actually that is problem with only 1 file, the rest are OK.

Upvotes: 0

Views: 223

Answers (3)

anseve
anseve

Reputation: 26

you marked it as plain text. right click on the file and select mark as php

Upvotes: 1

user6609090
user6609090

Reputation:

You need to install PHP Extension on it and restart your PhpStorm

if already install PHP Extension then check on the right bottom and select PHP instead of Plain Text

Upvotes: 0

Eugene Morozov
Eugene Morozov

Reputation: 3043

You accidentally marked it as text, please check your Settings | Editor | File Types | Text for the filename.

Upvotes: 3

Related Questions