Home Download Buy Blog Forum Support

Find and replace

Find and replace

Postby erinata on Tue Apr 17, 2012 1:42 pm

I guess this question is dumb but I really cannot figure out how to do it.

When I press Ctrl+H to invoke the "find and replace panel", I type in the "find what:" text, press Tab . type in the "replace with: " text .............

then what key should I press to execute the "find" "find all" "replace" and "replace all" action ? (except clicking the button using mouse)
Posts: 29
Joined: Wed Jan 25, 2012 12:19 pm

Re: Find and replace

Postby SeanWcom on Tue Apr 17, 2012 2:05 pm

Actually, that's not really a dumb question... hehe. That's one key-bind that I never did learn. Instead I learned a different method that I prefer a lot more... try this:

Select the text that you want to find all occurrences of. Press, ALT-F3. This selects all occurrences of that text as a multiple selection. Now you can type whatever you want, or even move the cursor around with the arrow keys if you just need to add/remove a few characters without retyping the whole string - when you have a multiple selection, you have multiple cursors, so moving one cursor moves them all. Oh, and escape will deselect your multi-selection.

After having used this method now for many months, I couldn't live without it. I haven't used the find and replace panel once. :)
Multiple selections... one of my favorite ST2 features. View some noob-friendly screen casts here.
Posts: 101
Joined: Wed Aug 03, 2011 1:31 am
Location: Georgia

Re: Find and replace

Postby C0D312 on Tue Apr 17, 2012 2:25 pm

If you hover your mouse over the buttons, it should show the keyboard shortcuts in a tooltip. They should be enter + a couple of modifier keys.
Posts: 1056
Joined: Sun Jul 10, 2011 3:23 am

Return to Technical Support

Who is online

Users browsing this forum: Alexa [Bot], Google [Bot], Yahoo [Bot] and 26 guests