| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| <html lang="en"> |
| <head> |
| <meta content="en-us" http-equiv="Content-Language"> |
| <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> |
| <title>Setting Source Folders</title> |
| <link href="../help.css" type="text/css" rel="stylesheet"> |
| </head> |
| <body> |
| <div role="main"><h1>Setting Source Folders</h1> |
| <p><em>Note that source folders can only be currently used with Standard |
| Make projects. Managed Make projects treat the entire project as a |
| source folder.</em></p> |
| <p>Source folders are a way to cut down on a project's indexing scope. |
| You can mark the folders that are part of your day to day work or part |
| of a subsystem that you work on. All files inside source folders will |
| be indexed and are, thus, searchable. Note that any files pulled in by |
| a file inside a source folder will also be indexed. </p> |
| <p><img alt="Set source folder" src="../images/cdt_set_src_folder.png"></p> |
| <p>To setup source folders: |
| </p> |
| <ol> |
| <li>Right click on the project and select <strong>Properties > C/C++ |
| Project Paths</strong></li> |
| <li>Click on the <strong>Source</strong> tab<br> |
| By default the entire project is a source folder, which means |
| everything will be indexed. This is reasonable for smaller projects but |
| definitely not recommended for large projects. </li> |
| <li>Click <strong>Add folder</strong> to add the folders. A dialog will |
| explain exclusion filters have been added to nesting folders. You will |
| see that the folder you added will be excluded from the project folder |
| (in order to avoid including a folder twice). Repeat until all the |
| folders have been added. <br> |
| <strong>Note: </strong>Don't forget to remove the project folder (which |
| appears by default) otherwise everything will be indexed.</li> |
| <li>Click <strong>OK</strong>. Your view in C/C++ projects will now change. |
| You should see your source folders designated with a "C" and all other |
| source and header files icons that are in a non-source folder will |
| change to a "hollow" C or H.</li> |
| </ol> |
| <p><img height="21" width="143" alt="Related concepts" |
| src="../images/ngconcepts.gif" > |
| <br> |
| <a href="../concepts/cdt_c_search.htm">C/C++ search</a><br> |
| <a href="../concepts/cdt_c_indexer.htm">C/C++ Indexer</a><br> |
| <a href="../concepts/cdt_c_indexer_prog_bar.htm">C/C++ Indexer Progress |
| Bar</a></p> |
| <p><img height="21" width="143" alt="Related tasks" |
| src="../images/ngtasks.gif" ><br> |
| <a href="../tasks/cdt_t_sel_search.htm">Selection Searching for C/C++ |
| elements</a><br> |
| </p> |
| <p><img height="21" width="143" alt="Related reference" |
| src="../images/ngref.gif" > |
| <br> |
| <a href="../reference/cdt_u_search.htm">C/C++ search page, Search |
| dialog box</a> |
| <br> |
| <a href="../reference/cdt_u_prop_general_idx.htm">C/C++ Project Properties, Indexer</a> |
| </p> |
| <p> </p> |
| <img alt="IBM Copyright Statement" src="../images/ng00_07.gif"> |
| </div></body> |
| </html> |