Is there any way that i can select some words to be highlighted and their instances as well. This feature i especially used when viewing log files in Notepad++
Here are some useful key combos for selecting words in Sublime Text.
Ctrl⌘G - selects all occurrences of the current word (AltF3 on Windows/Linux)
⌘D - selects the next instance of the current word if it is already selected, otherwise selects the current word (CtrlD)
- ⌘K,⌘D - skips the current instance and goes on to select the next one (CtrlK,CtrlD)
- ⌘U - "soft undo", moves back to the previous selection (CtrlU)
⌘E, ⌘H - uses the current selection as the "Find" field in Find and Replace (CtrlE,CtrlH)
If you start with an empty selection, ⌘D and Ctrl⌘G will search by whole words automatically. If you start with a non-empty selection, it will search for any instance of the text (disregarding word boundaries).
It's possible, but just through the Find tool:
- select the desired word (double-click on it; or click on it and press ⌘D)
- open the Find tool (with ⌘F) and ensure Hightlight matches is selected
- navigate through the word instances (with ⌘G / Shift⌘G)
Or, as mentioned already, WordHighlight plugin would fit your specific need.
The native way is not as straightforward & fast as with the plug-in, but it's pretty fast anyway; with the benefit of not having the multiple highlighting always happening regardless you want it or not.
And double-click + ⌘F is fast enough for me 😉