Linux Eclipse Code hints feature settings (Java & C + +)

Source: Internet
Author: User

Recently developed under Linux, because of the long-term use of Visual Studio 2010, the Code hints function, and now under Linux, using Eclipse to do development, of course, Miss Visual Studio strong code hints, so on the internet search for some articles, Sort out how the Eclipse Code hints feature is set.

Java:

Enhance the code hinting feature of Eclipse, how to configure it specifically? Let's start with steps: 1. Open eclipse, then "window" → "Preferences" 2. Select Java, expand, Editor, and select Content Assist. 3. Select "Content Assist" and see the "Auto Activation triggers for Java" option under "Auto-activation" on the right and right. Actually, it means "." is the trigger code hint. This symbol. 4. "Auto Activation triggers for Java" option in "." After the addition of ABC letters, convenient to find the following changes. Then "Apply" and click "OK". 5. Then, "File" → "Export", in the pop-up window select "Perferences", click "Next". 6. Select the export file path, I export to the desktop, enter "test" as the file name, click "Save". 7. On the desktop, locate the file "TEST.EPF" that you just saved, and right-select "Open with Notepad." 8. You can see a lot of information about configuring Eclipse 9. Press "CTRL + F" shortcut key, enter ". ABC" and click "Find Next". 10. Find the configuration information for ". ABC" as follows: 11. Change ". abc" to ". ABCDEFGHIJKLMNOPQRSTUVWXYZ (,", Save, Close "TEST.EPF"). 12. Go back to the Eclipse interface, "file" → "Import", in the pop-up window select "Perferences", click "Next", select just in the modified "TEST.EPF" file, click "Open", click "Finish". This step is similar to the export step above. 13. Finally, of course, the code is tested. Just create a new project and create a new class. Test in code input Switch,foreach and so on. You will immediately find that the hint, and no matter which letter will have a lot of relevant hints, very smooth, very convenient.  C/C++:  Open Terminal: Input: $ gcc-v Get similar: GCC version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16UBUNTU2) It is easy to see the version you are currently using. Start Eclipse. Enter: windows-->preferences-->c/c++ find environment. Add two variables: cplus_include_path:/usr/include/c++/4.1.3 (my gcc version)  c_include_path: The code hints for/usr/include c/c++ are triggered only in. And, It's not as powerful as Java, but it's enough. Because this is where code hints are the easiest to play.   Add: Ctrl+space can also trigger code hints and be more powerful, almost always giving a hint that fits the requirements, but I don't know how to let eclipse automatically trigger the hint in more cases, and if it does, Eclipse and vistual As strong as studio.   This article for reference: http://developer.51cto.com/art/200907/136242.htmhttp://blog.chinaunix.net/u/21684/showart_462486. html  add: alt+/  can also prompt   do not know ctrl+space   How to operate under the Mac, because this this combination of keys by default is the search function occupied, Commanc+space was switched input method occupied, but alt +/can be used also good  

Linux Eclipse Code hints feature settings (Java & C + +)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.