CDT on hover show documentation - eclipse

In JDT, if we hover any object, like a function, class, variable etc, eclipse shows the documentation in a tool tip. This documentation is also displayed when the code-assist window shows the possibilities.
However, CDT does not work like this. By default, it shows the code of the hovered object. There's a setting in Window -> Preferences -> C/C++ -> Editor -> Hovers, to choose Documentation to be displayed, but unfortunately it does not show anything. Also there's a project called libhover, but it seems it does not work with in-code doxygen comments.
Is there any solution to mimic JDT hover behavior in CDT?

Install LinuxTools plugin to Eclipse C/C++ IDE
Help / Install New Software... / Add...
Name=Linux Tools
Location=http://download.eclipse.org/linuxtools/update-3.2
Check for updated LinuxTools location url here
Install following packages, restart Eclipse after it's done.
C/C++ Library API Documentation Hover Help
Libhover for Newlib Feature
Library Hover help for devhelp documentation
You should get tooltips for C standard library functions such as malloc, memset, printf. I just did this for Eclipse Luna (4.2.2) with MinGW-builds_64bit in Windows 7.
I don't know what happens in C++ projects I guess it needs Doxygen tricks which I am not familiar with.

Related

Hide standard toolchains from C/C++ project wizard

Our team is developing a custom toolchain. We want to build it in to Eclipse CDT. We don't want to see an excess element in a final product.
Is it possible to hide/disable/delete standard toolchains in C/C++ Project Wizard?
enter image description here
Previously, I hid a default Debug Configurations using org.eclipse.ui.activities extension point. This time it doesn't help we. I tried to remove CrossGCC plugin but a Unistall... button in Install Software is greyed out.
I use Eclipse Luna RCP (4.4.2) for plugin development.
I'm not very familiar with this part of CDT, but after doing a bit of code browsing, it seems like the extension points org.eclipse.cdt.core.templates and org.eclipse.cdt.core.templateAssociations may be relevant.
See how e.g. the current CDT code uses these extension points to associate a set of toolchains with a project template. If your plugins define their own project template(s), perhaps you could do something similar to control the list of associated toolchains?

Snipmatch and Code Recommender plugin does not work together in the Window Builder editor in Eclipse

after i installed snipmatch plugin to eclipse mars, i could not see code assist proposals in eclipse. i want to see code proposals from code recommenders plugin. it is very usable.
after installed the plugin, it can be seen as below.
[]
after hitting ctrl + space, it can be seen as below.
[]
i could not configure eclipse to see proposals. by the way snipmatch plugin works in eclipse. how can i correct this ?
I am a committer of the Code Recommenders project. This happens because of our change for Bug 470372. In order to prevent errors when working with other Java editors, we disable Code Recommenders proposals for editors other than the standard Java Editor.
Since you installed the newest version of Snipmatch, you also updated to the newest version of Code Recommenders, which includes this change.
In your case, you opened the Java File with Window Builder, which includes a Java Editor.
If you open it in the standard Java Editor instead (Right Click > Open With > Java Editor) and try content assist, I believe you will see the proposals again.
Another workaround would be to disable Code Recommenders and use the standard JDT proposals. They won't give you proposals with percentages, but at least you'll have them. To do so, go to Preferences > Code Recommenders > Completions and uncheck Enable Code Recommenders code completion.
I have opened Bug 474318 to track this issue with Code Recommenders and WindowBuilder.

Eclipse syntax highlighting

I am trying to add CFeclipse highlighting to *.js files but it is not working in the Luna version of Eclipse I try going to Window -> Preferences -> General -> Content Types and adding it there but the syntax highlighting does not appear. Any ideas?
Personally, I find the JavaScript syntax highlighting for CFEclipse deficient. I greatly prefer the syntax highlighting provided by JavaScript Development Tools, part of the Eclipse Web Developer Tools package provided by Eclipse Web Tools Platform.

eclipse / aptana - text compare show code syntax highliging

I am using Aptana 3 which is basically a modified version of eclipse, so i think this question is applicable to both
Before I commit code in I like to review my changes via the text compare. It allows me to double check things I have changed.
However although text has been highlighted for changes made it does not keep the php syntax highlights. Is there anyway I can keep the PHP or whatever syntax highlighting when viewing differences?
See screenshot.
This is something that a plugin author must implement, and, it seems that it's still not implemented for Aptana's PHP editor, so, the proper thing to have that would be reporting this as a bug to be fixed in a future Aptana Studio 3 version.
This is a feature of the Eclipse editor. Perhaps you can try opening the file in another editor. Right click on the file and go to open with and choose different PHP Editor.
I am not a PHP programmer but perhaps you can check these links to see if you can find and alternate plugin with the features you want.
http://eclipse.org/proposals/php-ide/
http://www.phpeclipse.com/
First of all, Aptana is not "a modified version of Eclipse". Aptana is based on the Eclipse Platform. I am using the Aptana Studio 3 plugin for Eclipse (3.7.1; because of PyDev and features like "Local Filesystem"). ISTM that this is a problem with the Aptana PHP Editor, which the Eclipse PDT editor takes preference over in Eclipse (that might be due to the fact that I had installed the PDT plugin first).
You can try to work around this if you install PDT in Aptana Studio 3 (if necessary and possible), and define the PDT editor as default for PHP files (in Eclipse, and perhaps Aptana as well, it is under Window → Preferences → General → Editors → File Associations). You can also report this as an Aptana bug. Or use Eclipse with the Aptana Studio 3 plugin in the first place; IMHO, most Aptana editors, including the Aptana PHP editor, are not much of an improvement over the "built-in" Eclipse editors.
The issue has been repotorted on aptana bug tracker (by me) and apparently it is going to be fixed with 3.1
the bug tracking number is APSTUD-3922 for anyone who is interested

Is there any way to manually fold code in Eclipse?

Is there any way to manually create fold points in code in Eclipse? I know how to enable folding and how to set the auto preferences, but i like being able to set my own fold points so I can ignore certain parts of my code. Think regions in VS.
I know there is in VS and NetBeans, but I cannot find a way to set manual fold points in Eclipse.
I don't think Eclipse has built in manual folding, but I did use a previous version of the following plugin for it.
Per the comment: The plugin has been recompiled for Eclipse 3.5 and is available at the Apache Isis site. A direct download link is also available. It also appears to work for Eclipse 3.6.
The coffee bytes folding plug-in for eclipse is still alive. But the pages have moved.
An Overview and how to get it can be found here.
I've installed it in eclipse using the update page.
In Eclipse go to Help -> Install new Software
Enter: eclipse.realjenius.com/update-site
Select the plugin and follow on-screen instruction.
I'm still pretty new to eclipse development and had to install mylyn before installing the code folding plugin.
I'm new to Eclipse, but since the IDE lets you fold preprocessor directives, you can just do "#if 1 .... #endif" to effectively set up manual folding.
No, eclipse does not have any option to provide manual folding plugins.