Q
Q
Quber2014-01-21 11:23:23
PHP
Quber, 2014-01-21 11:23:23

Why doesn't phpstorm recognize one php file?

phpstorm does not recognize one php file among many others (others are recognized normally in the same project and in the same folder). When you try to open a file, it opens in another text editor. If you rename it, then everything is OK. If you move it to another directory, then everything is also OK. Namely in this directory and with this name does not want. The problem arose long ago, after something accidentally clicked. To this day I can’t figure it out .. can anyone help?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
T
TomaZ Vazovsky, 2014-01-21
@Quber

I had such a problem. The bottom line is that the file (full name) was registered in the pattern to another type of files.
Open the same File -> Settings -> File Types,
and there look for your file in "Registered Patterns" among other data types.
Most likely he got into "Files opened in associated applications".

P
Pavel Volintsev, 2014-04-15
@copist

1. Open File -> Settings -> File Types
2. Find your file in this dialog
3. Remove it from the list and save the settings
6135b1d7215fd203980755.png

A
akashtrih, 2014-01-21
@akashtrih

Try to open the console (Win+R, then the text "cmd"), go to the project directory (using the command CD). In the folder with the problem file execute DIR *.php /s /b. This should print a list of files to the terminal. Look for the problematic file in the list. If it is on the list, then copy its name as a reply to this message

K
ka-terok, 2021-09-03
@ka-terok

File -> File Properties -> Associate with File Type61321a81ae449128854967.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question