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) ?
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) ?
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.
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
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.
Settings -> Editor -> Code Editing -> Highlight on Caret Movement -> Usages of element at caret