Sublime Forum

Question about Find in Project

#1

Is there a way to make it find what is selected by default? Or even better the word under the cursor?

ie i select a function name, then hit ctrl+shift+p and the function name is in the find field.

0 Likes

#2

You can press ctrl+e to copy the selected text into the find panel, or set the option find.useSelectedText to true (via Preferences/General Preferences) to have it happen automatically when you open the panel.

0 Likes

#3

ctrl+f3 = look up word under cursor (forward)
shift+f3 = look up word under cursor (backwards)
alt +f3 = select all occurrences of word under cursor :smile:
ctrl+i = incremental search
ctrl+shift+i = reverse incremental search

ctrl+e = copy word under cursor in find textfield
ctrl+shift+e = copy word under cursor in replace textfield
These 2 above wont open the find/replace panel so do ctrl+f (for find only) or ctrl+h (for find&replace) you will see the words there.

Happy editing :smiley:

0 Likes

#4

I have find prev/next under cursor mapped to alt-Up and alt-down. This makes it easy to see where a identifier is used in the code, being able to do this is actually a make or break feature for any editor i use.

0 Likes

#5

Just for reference for future users: You can change all these shortcuts to your own preference and taste. To whatever you are used to. They are all customizable.

0 Likes