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?
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.
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.
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)
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.
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.
You can click on 'Hide Fields' (third option in picture) to display just the functions (Eclipse Version: 2019-03 (4.11))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With