It has not been developed with Eclipse in Linux for several years, and it was developed with Eclipse in CentOS 7 a few years ago, as if it were a newer version. Recently, a project called for the card to be sent under CentOS, after the installation of ECLIPSE-CDT, the establishment of the project found that no C + + project tips.
Query the webpage, there is a webpage http://blog.sciencenet.cn/blog-655584-547162.html, feel also need to install ECLIPSE-PDE. I have installed the Eclipse-subclipse,eclipse-svnkit and so on by the way.
This will lead to the creation of a project for C + + code behind new project. My project is based on CMake, then set up Debug and release compilation configurations respectively.
Follow the configuration on that page to extract the following:
First, C + + environment configuration: window-preferences-c/c++
1, appearance, select group method definitions in the Outline view
2, code style, through new to create a new code style, named Qpsoft, and initialized to Bsd/allmain, and then modify some of the details by habit. My advice is to use the default, perhaps the reason I used to write Java writing habits. Can come according to their own wishes.
3, Editor-content Assist-auto-activation-delay (MS), the original value is 500, changed to 100, the smart prompt speed will be very fast!
4, Indexer, empty files to index up-front content, modify the value of the cache limits, as large as possible, can improve speed!
Second, modify the smart prompt shortcut key:
Window-preferences-general-keys, input content, find content Assist, in the binding modified to Shift+space, more handy.
I think this can be in accordance with their own habits, hehe.
Third, other settings
1. Window-preferences-general-editors-text Editors, check show line numbers, set print margin column to 110
2. Window-preferences-general-workspace, cancel build automatically, select Save automatically before build
I'm a little confused about this setting, but I've set it up as well. If you understand, see this article, Hope message answer.
Four, through the plug-in extension function
1. Support Subversion:eclipse official production, home page is located in http://www.eclipse.org/subversive/.
At installation you can copy the address by Help->install New software ..., in work with box: http://download.eclipse.org/technology/subversive/0.7/ update-site/
Because the SVN up option is not present in Subclipse, subversive is installed.
Linux Configuration Eclipse Practice