Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do a full-fledged search in the Outline view in Eclipse (CDT)

I am using Eclipse CDT for C code browsing at work. Very often I like to search for a function name that I really don't know the name of.

The good part is that there is a search available and as soon as I start typing with my cursor in the Outline window, it starts looking for a match.

The problem, though, is that my guess has to match the beginning of the function name.

i.e. I can find get_var_xyz() by typing get_var_xyz() or narrow down to get_var_xyz and get_var_abc by typing get_var.

I cannot just simply search for xyz if I don't know what the preceding text is. That's what I want to be able to do.

Is there a setting for this hiding somewhere? Or a plugin I could install?

Alternatively, it doesn't even have to be via Outline. As long as I can say "In the current file, show me all functions that contain this text"

Thanks in advance!

like image 788
user657862 Avatar asked Sep 28 '12 23:09

user657862


2 Answers

So I found this. If you do a "Ctrl+O" it brings up a small window called the quick outline. In this I can use wildcard (*) while searching which is extremely useful!

like image 135
user657862 Avatar answered Oct 07 '22 04:10

user657862


You can try Navigate->Open Element from the main menu. That dialog supports wildcards, has rich filtering capabilities and works across several files. If I need to find something in a single file, I usually use increamental find (Ctrl+J)

like image 38
Eugene Avatar answered Oct 07 '22 03:10

Eugene