Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text - Shortcut to move cursor to "found" text?

Does anyone know a keyboard shortcut to move your cursor position to highlighted "found" text?

Ex: I press Ctrl+F and type "foo", this will bring me to the first instance of foo in the document.

Now I want a keyboard command to place my cursor next to this instance of foo so I can edit the text that is next to it.

like image 540
Ben Hansen Avatar asked Mar 24 '15 21:03

Ben Hansen


2 Answers

I think I don't get your problem, but that's really much the default behaviour.

Anyway, I recommend incremental find (default keybinding is ctrl+i). It searches from the current position and the panel is closed afterwards (which is what I want all of the time). If you press escape in the search bar, the cursor does not move. If you press enter it jumps right to the next occurence.

like image 133
Philipp Moers Avatar answered Oct 15 '22 22:10

Philipp Moers


If you want to put a cursor at each instance of found text in Sublime Text 3

  1. CMD + F to search for text
  2. click the Find All button on the right side of the find bar (bottom right of window) enter image description here
  3. You should then have an active cursor at the end of each found string of text
like image 25
Fabian Avatar answered Oct 15 '22 22:10

Fabian