I use *
and #
for quick and basic typo checking.
If I type AVeryLongVariableName
, I can put my cursor on the word, press *
and see all the other places that word is used. I know I spelled it correctly. If nothing else is highlighted and the cursor does not move anywhere, I know I misspelled it.
I would like to do that for multiple words. For example, when I have identifiers foo
and bar
all over the place, I might want to look for foo.bar
and not match foo
or bar
by themselves.
I use /foo.bar
for this. Is there a more elegant way to maybe select foo.bar
and show me all the places that string is matched, preferably a way I don't have to type the string?