Eclipse : add automatic include folder
Eclipse is a C, C++, Java and other programming language editor. I use this editor to create program with C/C++. When I use this editor, I have a problem to add include directory to eclipse editor. Right click at your project folder in Eclipse and choose Properties (Alt+Enter). Locate and click Paths and Symbols menu. This is a picture to add include directory to Eclipse :
Usually I use add button to add include directory location in Eclipse. When I want to add multiple directory, we must manually add that directory one by one because Eclipse dont have include directory with subdirectory :(.
We can use export and import settings to add multiple include directory to Eclipse. First, we click Export Settings button to open export dialog.
Fill Export to file input with your file output name. When we click Finish button, Eclipse will create a settings xml file. This is a example of content of this file :
<?xml version="1.0" encoding="UTF-8"?> <cdtprojectproperties> <section name="org.eclipse.cdt.internal.ui.wizards.settingswizards.IncludePaths"> <language name="C Source File"> </language> <language name="Object File"> </language> <language name="Assembly Source File"> </language> </section> <section name="org.eclipse.cdt.internal.ui.wizards.settingswizards.Macros"> <language name="C Source File"> </language> <language name="Object File"> </language> <language name="Assembly Source File"> </language> </section> </cdtprojectproperties>
If we want to add other include directory in C source, so we can add new include directory at bottom of text <language name=”C Source File”>. This is example if I want to add other include directory to Eclipse :
<?xml version="1.0" encoding="UTF-8"?> <cdtprojectproperties> <section name="org.eclipse.cdt.internal.ui.wizards.settingswizards.IncludePaths"> <language name="C Source File"> <includepath>/data/Project/opendtect/ODWork/include/Algo</includepath> <includepath>/data/Project/opendtect/ODWork/include/AttributeEngine</includepath> <includepath>/data/Project/opendtect/ODWork/include/Attributes</includepath> <includepath>/data/Project/opendtect/ODWork/include/Basic</includepath>
Save xml file and use import file. This is a dialog window to import new Eclipse setting file :
If import file success, so when we open property window Eclipse at menu Path and Symbols, we can get new include folder directory at Eclipse. When we want to use this include directory, we can use import method at our new project.
Wonderful information, trendy site design and style, carry on the great work
hi Judith, thank your for visiting my site.
That’s 2 cevelr by half and 2×2 clever 4 me. Thanks!
Howdy very nice site!! Man .. Excellent .. Superb .. I will bookmark your web site and take the feeds additionally¡KI am satisfied to seek out numerous helpful info here within the put up, we need develop more techniques in this regard, thanks for sharing. . . . . . Telegrafi
I’m writing to make you be aware of what a terrific encounter my friend’s daughter developed viewing your site. She figured out so many details, which include what it’s like to have an awesome helping character to make folks effortlessly comprehend a variety of tortuous matters. You really exceeded readers’ desires. Many thanks for delivering these priceless, dependable, informative and in addition unique guidance on the topic to Emily Buscador de peliculas.