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) ?
Please sign in to leave a comment.
Try BrowseWordAtCaret plugin.
For out-of-the-box support please vote for https://youtrack.jetbrains.com/issue/IDEA-98569
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.
Well, that's unfortunate...
Thanks
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.