How to filter the Eclipse Outline View to show only Functions

I want to have the 'Outline view' in Eclipse in the CDT (so for a C project) show me only function names. So no enums, include files, macros, etc...

There are some options in the 'Filters...' menu, but none that make it possible to only show functions.

Can anybody help me?

Upvotes: 9

Views: 6102

Answers (4)

jok
jok

Reputation: 283

You can click on 'Hide Fields' (third option in picture) to display just the functions (Eclipse Version: 2019-03 (4.11))enter image description here

Upvotes: 1

Marius M
Marius M

Reputation: 191

You could use the "group Includes" and "group Macros" from the drop-down menu of the outline view to limit the list. (they will each be folded into a separate folder)

Upvotes: 7

Edub
Edub

Reputation: 540

You could try to hide the includes by creating a Filter(Can be found in the DropDown Menue Filters): E.g. if you do not want to see C,C++ Include Files: "*.h, *.hpp" would work.

Upvotes: 1

greg
greg

Reputation: 21

Since nobody's answered yet I'll offer this. Step 1. Display the Members view. (menu Window > Show View > Other, then under "Java" select "Members") Step 2. At the upper right, toggle icons to filter the display. For example, turn on "Hide Fields" and "Hide Local Types." You can also filter out static objects and non-public members.

Upvotes: 2

Related Questions