Sublime Text 3 highlights all instances of currently selected text. Is there any shortcut to navigate cursor to the next / previous instance (copy) of selected text?
So far, I've only managed to find out some information about adding more instances to current selection (expanding it) with Ctrl+D, skipping current instance (Ctrl+K, Ctrl+D) and deselecting it (Ctrl+U), which actually is a soft undo, not a real command.
I can use Ctrl+D to go to next instance of selected text and Ctrl+U to undo. But, since these shortcuts operates on selection, this is not, what I'm looking for.
Actually, I'm asking, is there any way to have this as simple as pressing Alt+Right to go to the next instance or Alt+Left to go to previous.
If this is not solved by default, then what commands should be tied to user-defined keyboard shortcuts?
In Sublime Text, you can edit all occurrences of a word by highlighting the words with alt+F3 , and then typing whatever you want to change the word to.
Ctrl + D in SublimeText is "Quick Add Next." This appears to be equivalent to Ctrl + B in Brackets, which is "Add next match to Selection" on the Find menu.
While you can place multiple text cursors in Sublime Text with Cmd–Click (Mac) or Ctrl–Click (Windows), here's another technique that comes in handy. Hold Ctrl–Shift (Mac) or Ctrl–Alt (Windows) and hit Up or Down Arrow to place an additional text cursor above or below the current cursor.
You can also use Ctrl + K , Ctrl + -> and Ctrl + K , Ctrl + <- . Glad to help.
Yes, all you need to do is edit your key bindings (Sublime Text -> Preferences -> Key Bindings User) for "find_under". Copy & paste this into your bindings and set your keys (defaults are "alt+super+g" and shift+alt+super+g)
{ "keys": ["alt+super+g"], "command": "find_under" },
{ "keys": ["shift+alt+super+g"], "command": "find_under_prev" },
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