Ivan Gabriele
Ivan Gabriele

Reputation: 6920

Option highlighting all strings matching actual selection in PhpStorm?

Is there an option highlighting all strings matching the actual selection in PhpStorm (like in SublimeText) ?

Upvotes: 8

Views: 3149

Answers (2)

Gerard de Visser
Gerard de Visser

Reputation: 8060

You can use Ctrl + Shift + F7 for this in PhpStorm.

This will highlight all usages of selected text.

Upvotes: 5

LazyOne
LazyOne

Reputation: 165491

Using built-in functionality: select text and hit Ctrl + F that will bring "Find in page" functionality: it will highlight all matches of selected text in this document. But it's not always convenient as you have to hit extra keys and have "find in page" bar open...

You can install and use BrowseWordAtCaret plugin that will automatically highlight word under caret in whole document (regardless of it's nature -- variable or just plain text) + you can easily navigate between all matches.

P.S. You have mentioned that "I'm used to regularly change the name of an object property, an array key or a parameter name at multiple places in same document."

Consider using Refactor | Rename for variables/class members/etc -- it works across multiple files.

Upvotes: 5

Related Questions