Sublime Forum

Little plugin to highlight current word

#1

Simple plugin that will highlight all occurences of the word under the cursor (a la Eclipse)

Handy to see where the current variable/function is used.

HighlightCurrentWord

0 Likes

#2

very cool mate!

btw, it will be good to have a way to enable/disable

0 Likes

#3

Good idea…
I updated the plugin; press ctrl+shift+H to enable/disable

0 Likes

#4

Thank you so much!
I have been waiting for that feature!

0 Likes

#5
Traceback (most recent call last):
  File ".\sublimeplugin.py", line 88, in execApplicationCommand
  File ".\HighlightCurrentWord.py", line 49, in run
AttributeError: 'View' object has no attribute 'eraseRegions'
Traceback (most recent call last):
  File ".\sublimeplugin.py", line 88, in execApplicationCommand
  File ".\HighlightCurrentWord.py", line 47, in run
  File ".\HighlightCurrentWord.py", line 38, in onSelectionModified
AttributeError: 'View' object has no attribute 'addRegions'

i got this, when i try to de /activated it, and it’s not working

0 Likes

#6

You’ll need to use the beta version, from sublimtext.com/beta, for this to work

0 Likes

#7

thanks

0 Likes