Ben Hansen
Ben Hansen

Reputation: 103

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.

Upvotes: 10

Views: 3332

Answers (3)

Fabian
Fabian

Reputation: 3450

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

Upvotes: 6

Philipp Moers
Philipp Moers

Reputation: 589

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.

Upvotes: 7

CargoMeister
CargoMeister

Reputation: 4319

On the mac it's command G.Windows, maybe ctrl G?

Upvotes: 0

Related Questions