Completion classname, suggest filename of classname ?
Hello,
Since my installation of version 2020.2, I have this problem which is quite annoying on a daily basis.
As soon as I want to call a class, it first suggests me the name of the files containing its classes, instead of the class itself. Then only then, the classes. This means that I need to scroll unnecessarily to access the class.
Likewise, when I want to change the name of a class to associate it with the file name, he also suggests the name of the current file with the .php, which doesn't make sense.
So I spend my time doing
new Ma => new MaClass.php > remove .php and add ()
and the same for
class MaClass.php => delete .php
It's not much, but it's quite annoying, and I don't see the logic of this suggestion.
(I've already tried "invalidate caches")
Is there a configuration to be changed to avoid this?
Thank you in advance for your help

Please sign in to leave a comment.
Hi there,
TBH -- I have never seen that IDE would offer filename.php kind of entry in such PHP context, EVER.
This has to be something specific to your setup (e.g. list of plugins) or something like that.
I suggest disabling ALL custom (not bundled by default) plugins, restart IDE and try again. If it works -- spend some time and enable 1-2 plugins at a time until you find out which one may be causing the issue. My guess it most likely be a PHP framework-related plugin...
Indeed, I had thought of disabling the ones I had added recently, but it was an old plugin I had had for a while that was causing me some concern.
In this case, for those who are interested, the following plugin https://plugins.jetbrains.com/plugin/11088-file-path-autocomplete/ was causing me that on all classes.
Thanks for your help!