user657862
user657862

Reputation: 406

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!

Upvotes: 5

Views: 1290

Answers (3)

steeven lee
steeven lee

Reputation: 1

For complex files, "*" crash in quick outline dialog. A workaround is type the first, then navigate to the beginning and INSERT a "*". It works for me, ugly :(

Upvotes: 0

user657862
user657862

Reputation: 406

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!

Upvotes: 11

Eugene
Eugene

Reputation: 9474

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)

Upvotes: 1

Related Questions