Fully Qualified Class Name Completion

In PhpStorm 2018.2, code completion comes with an extra perk: When searching for a class, you can now provide the class namespace in the suggestion list, in addition to the class name itself.

So, to locate, for example, an \Illuminate\Routing\Console\MakeControllerCommand  class, you don’t have type or invoke completion separately for each part of its FQN. Simply type something as simple as “IRCM” and have the сlass matched and suggested to you:

Run suite

You can customize the way completion works on the Editor | General | Code Completion preferences page. By default, completion will only match the first letter’s case, so, typing “Ircm” for the above example will do the trick and suggest the proper class.

competion_preferences

Depending on what works better for you, you can choose All letters, which will require typing “IRCM” (or “IRoCoM”), or disable case matching altogether: in this case, typing “ircm” is sufficient.

PhpStorm 2018.2 is now available! You can download it here or via JetBrains Toolbox App.

Your JetBrains PhpStorm Team
The Drive to Develop

This entry was posted in Cool Feature. Bookmark the permalink.