I'm using ST3 with vintage mode. When selecting some lines and pressing alt+shift+f (Mac OSX) I get the find and replace dialog at the bottom of the screen.
BUT, I have to remove my hand from the keyboard, reach for the mouse and click the little "In selection" button...
...is there some way for sublime to realize that I have made a selection and have that button clicked by default?
Or, if you want to find and replace text in a number of files at once, press Command + Shift + F or Control + Shift + H to open Sublime Text's Find in Files tool that can search and replace across as many files as you have open or select from its menu.
Quick Add Next. To add the next occurrence of the current word to the selection, use Quick Add Next, which is bound to Ctrl+D on Windows and Linux, or Command+D on OS X. Again, if you go too far, use Undo Selection (Ctrl+U, or Command+U on OS X) to step backwards.
Alt+F3 gives a really simple way to do find and replace: Use it to select all occurrences of the current word or selection, then just start typing to replace or edit them all at once.
Use CTRL+D at each line and it will find the matching words and select them then you can use multiple cursors.
Try setting:
"auto_find_in_selection": true,
From my understanding, this will automatically use 'in selection' if you have non-empty selection when goes into find box.
[Edit] Note, you generally set this settings in "Preferences.sublime-settings". You can open this setting by "Ctrl+Shift+P", and select "Preferences: Settings - User".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With