Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 2—Quickly find something on a page

Tags:

sublimetext

I've been trying out Sublime for the past few days. Long-time TextMate user.

The one thing I struggle with most is finding stuff in a document. I can use CMD+r to find a selector, but what if I'm looking for something else, a comment maybe, or something else?

If I use CMD+f, Sublime will put a box around all of the instances of my search term, which isn't what I want either. Worst, it keeps a box around all of the instances:

http://cl.ly/1T3x0i2L0j2u1a0E0M12.jpg

I need to "disengage" the find before I can move on.

Is there a TextMate "QuickFind" (Ctrl+s) equivalent in Sublime Text?

I find searching/navigating through a document in Sublime to be really, really frustrating.

like image 850
saltcod Avatar asked Mar 30 '12 14:03

saltcod


People also ask

How do I search for an element in Sublime Text?

Use the Search all shortcut: Ctrl + Shift + F , then select the folder in the "Where:" box below. (And for Mac, it's ⌘ + Shift + F ). If the root directory for the project is proj, with subdirectories src and aux and you want to search in all subfolders, use the proj folder.

What is Ctrl D in sublime?

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.

How do I search a line in Sublime Text?

In Sublime Text, you can quickly jump to any line in the code. Hit Ctrl–G (Mac and Windows). Type in a line number and hit Return/Enter to go to that line.

How do you select all occurrences of a word in Sublime Text?

To add all occurrences of the current word to the selection, use Find All: Alt+F3 on Windows and Linux, or Ctrl+Command+G on OS X.


1 Answers

After looking for a very long time, I've found it. The Sublime equivalent to Textmate's quick search/find is Find > Incremental Find, or cmd+i.

Now, I'm officially a Sublime convert.

like image 195
saltcod Avatar answered Sep 20 '22 19:09

saltcod