Eclipse配置及问题解决 syntax highlighting disappeared for one of my files and Indexer missing many classes

大的C++ project导入到eclipse之后都会有一些问题,别特是语法高亮没有,一堆红色浪线无法解析等。本文解决这些问题,让你用的更爽。注意,目前测试的版本中最新的为oxigen,但是只有luna是好用的,所以建议用luna。


1. To solve highlighting disappeared, pls refer screenshot below.


Eclipse配置及问题解决 syntax highlighting disappeared for one of my files and Indexer missing many classes_第1张图片


2. To solve  Indexer missing many classes: 


By default only source files that are considered part of the build are 
indexed (and all included files).
You can enable the option "Index all files" in the Indexer preferences 
(Window > Preferences > C/C++ > Indexer) to index all files.
Note also that the include search path must be setup correctly for the 
parser to be able to follow inclusions. This is recommended even if the 
above option is on.

Eclipse配置及问题解决 syntax highlighting disappeared for one of my files and Indexer missing many classes_第2张图片


3.  eclipse.int配置,主要改的是各个size的大小

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20150204-1316
-product
org.eclipse.epp.package.cpp.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
1024m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=1024m
-Xms400m
-Xmx2048m

你可能感兴趣的:(Eclipse配置及问题解决 syntax highlighting disappeared for one of my files and Indexer missing many classes)