'Intellij IDEA highlight all occurrences of selected text
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) ?
Solution 1:[1]
https://plugins.jetbrains.com/plugin/201-browsewordatcaret
From the plugin description:
Allows to easily browse next/previous word at caret and highlight other appearances of selected word.
I'm using it and it works perfectly.
Solution 2:[2]
The following worked for me in IntelliJ 2018.2.3:
Disable automatic highlighting of usages by unchecking:
Preferences | Editor | General | Highlight usages of element at caret
Add mouse shortcut for Highlight Usages in File:
Preferences | Keymap | Main menu | Edit | Find | Highlight Usages in File
My mouse shortcut was: Shift + Control + Double Click
Solution 3:[3]
I am using Webstorm 2021.2 at the moment and this feature is working. Just for your information. Hope you also already updated to the latest.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | iDecode |
Solution 2 | Mario Galic |
Solution 3 | Ujitha Perera |