Incorrect order of suggestions
I have class with 2 methods:
convertIntegerToDecimal
convertDecimalToInteger
When I type
$class->convertI
I expect that default suggestion will be convertIntegerToDecimal, but PhpStorm uses alphabetic order, and I have to act in order to get proper code.
Using PhpStorm 2018.3 RC2
Is this a bug or feature request? Or some hidden setting can make it working correctly?
Thanks
Please sign in to leave a comment.
Could you please check if you have "Sort suggestions alphabetically" checkbox enabled in "Settings | Editor | General | Code Completion" settings window?
Thanks for support, this checkbox is 'off'.
I've updated to 2018.3.2, issue is still in place.
Now the order of functions in the list corresponds to order in the class. Still not suggesting automatically the closest match.
With this code:
.. I get these suggestions:
But as soon as I type i they get reversed. I have the factory settings:
P.S. With these settings you can also type $class->ci and get a match.
Thanks for the example. You can add this info as a comment at https://youtrack.jetbrains.com/issue/WI-42330
I've also checked the "weight" of completion results and they are pretty much the same: