How to highlight all occurrences on selecting word instead of under caret?

Answered

Currently, intellij highlights all occurrences of the word under the caret. How can I change it so that it doesn't do that, and instead will highlight all occurrences only when I select the word (eg: similar to sublime text) ?

2
4 comments

visual studio code does that and it is very helpful. There are many cases where there is a secondary language like an SQL or Cypher mixed with Java or just pieces of strings that need to be highlighted as TEXT instead of as symbol usages.

Please add this feature. Would be great.

2
Avatar
Permanently deleted user

Well, that's unfortunate...

 

Thanks

1

Hello,

Currently it's not possible. Feel free to vote for the related request: https://youtrack.jetbrains.com/issue/IDEA-127256

As a workaround you could disable "Highlight usages of element at caret" option in "Settings | Editor | General" and invoke it manually via shortcut.

0

Please sign in to leave a comment.