Code navigation improvements

In PhpStorm 2018.1, navigating your codebase is a bit easier. The navigation features are actually not new, but we’ve fixed several issues with them to make them behave more predictably. If something was not working for you previously, now it’s probably the right time to give them a second chance.

splash

Symbols navigation

In PhpStorm, you can quickly navigate to a desired symbol by pressing Ctrl+Alt+Shift+N (Command + Option + O on macOS) and typing the desired symbol’s name. We’ve extended this functionality with namespaces and class members resolution support: you can now locate class members by the conventional Namespace\ClassName::methodName  notation. You can use . , :: , \ , /, and -> as separators, too:

goto-symbol

Gutter navigation improvements

As an alternative to using the menu commands, you can navigate your code using the editor’s gutter icons. In PhpStorm 2018.1, clicking the gutter icon now provides you with the same set of options as the corresponding menu command. Specifically, you can now use instant search to locate a specific implementation:

goto-implementation-gutter

When locating an implemented / overridden method, PhpStorm will now offer you the classes to jump to, as you would expect:

goto-implementation-method-gutter

Finally, the Pin button is now available in the gutter pop-up menu, too, which allows you to open all the found items in a tool window:

find-usages

If you prefer a minimalistic UI, you can disable the gutter icons altogether and rely on the menus and keyboard shortcuts instead. Simply navigate to Settings/Preferences | Editor | General | Gutter Icons and customize the gutter icons to your liking.

Your JetBrains PhpStorm Team
The Drive to Develop

This entry was posted in Cool Feature, Newsletter and tagged , , , . Bookmark the permalink.