File associations
I have a development environment for OpenCart, a PHP shopping cart website, and SOME of the files are showing as PHP files (php text file icon), and others as (I assume) C files (a blue circle with C in the middle) even though they all have the same file suffix (.php)
Looking at settings->editor->file types, the icon for C/C++ files is NOT the blue circle one, but I cannot see that at all, and the file associations are correct (*.c, *.cc, *.cpp, *.h, *.hpp) as are the PHP file associations (too many to list!). How do I reset the file associations for these files so that they are correctly showing file type icons and are linted correctly?
I am using IntelliJ IDEA Ultimate 2017.3 on Windows 10, although this project was created in an earlier version which has been upgraded a number of times to reach this version, which may have used different icons for file types(?).
Please sign in to leave a comment.
Could you please attach the screenshot of the icon you see for these files?
Does the editor fail to recognize PHP code in these files properly?
Partial screen shot attached showing both file type icons : the PHP code appears to be correctly highlighted, and the Structure PHP indicates that the opened file is being correctly identified, so this looks to be a visual issue. I noticed when I started the IDE this morning that the icons are originally showing as PHP icon but then refresh as the C icon once the project finishes loading, so I suspect the icon is cached somewhere?
It's by design, see the discussion here: https://youtrack.jetbrains.com/issue/WI-34053 and here: https://youtrack.jetbrains.com/issue/WI-18878#comment=27-1546559.
Oh I see - it's indicating a class file, not a C file - my mistake - thanks.