Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 379
Arnaud Gouder de Beauregard Avatar asked Jun 04 '10 12:06

Arnaud Gouder de Beauregard


People also ask

How can I see all functions in eclipse?

What you are referring to is called code completion and can be accessed with Ctrl + Space in Eclipse. This will list all variables, fields, methods, classes that is applicable in the current context. Also, there is Ctrl + O in Eclipse, which will give you a list of all the available methods in the current class.

How do I show an outline in eclipse?

The Outline View is displayed by default as part of the PHP Perspective. To manually open the view, go to Window | Show View | Other | PHP Tools | Outline.


4 Answers

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)

like image 124
Marius M Avatar answered Oct 05 '22 14:10

Marius M


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.

like image 44
greg Avatar answered Oct 05 '22 12:10

greg


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.

like image 32
Edub Avatar answered Oct 05 '22 14:10

Edub


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

like image 28
jok Avatar answered Oct 05 '22 12:10

jok