carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/tasks/cdt_t_set_src_fold.htm
changeset 5 684bf18fdedf
equal deleted inserted replaced
4:4764c8c88759 5:684bf18fdedf
       
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
       
     2 <html lang="en">
       
     3 <head>
       
     4   <meta content="en-us" http-equiv="Content-Language">
       
     5   <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
       
     6   <title>Setting Source Folders</title>
       
     7   <link href="../help.css" type="text/css" rel="stylesheet">
       
     8 </head>
       
     9 <body>
       
    10 <h1>Setting Source Folders</h1>
       
    11 <p><i>Note that source folders can only be currently used with Standard
       
    12 Make projects. Managed Make projects treat the entire project as a
       
    13 source folder.</i></p>
       
    14 <p>Source folders are a way to cut down on a project’s indexing scope.
       
    15 You can mark the folders that are part of your day to day work or part
       
    16 of a subsystem that you work on. All files inside source folders will
       
    17 be indexed and are, thus, searchable. Note that any files pulled in by
       
    18 a file inside a source folder will also be indexed. </p>
       
    19 <p><img alt="Set source folder" src="../images/cdt_set_src_folder.png"></p>
       
    20 <p>To setup source folders:
       
    21 </p>
       
    22 <ol>
       
    23   <li>Right click on the project and select <b>Properties &gt; C/C++
       
    24 Project Paths</b></li>
       
    25   <li>Click on the <b>Source</b> tab<br>
       
    26 By default the entire project is a source folder, which means
       
    27 everything will be indexed. This is reasonable for smaller projects but
       
    28 definitely not recommended for large projects. </li>
       
    29   <li>Click <b>Add folder</b> to add the folders. A dialog will
       
    30 explain exclusion filters have been added to nesting folders. You will
       
    31 see that the folder you added will be excluded from the project folder
       
    32 (in order to avoid including a folder twice). Repeat until all the
       
    33 folders have been added. <br>
       
    34     <b>Note: </b>Don't forget to remove the project folder (which
       
    35 appears by default) otherwise everything will be indexed.</li>
       
    36   <li>Click <b>OK</b>. Your view in C/C++ projects will now change.
       
    37 You should see your source folders designated with a "C" and all other
       
    38 source and header files icons that are in a non-source folder will
       
    39 change to a "hollow" C or H.</li>
       
    40 </ol>
       
    41 <p><img height="21" width="143" alt="Related concepts"
       
    42  src="../images/ngconcepts.gif" border="0">
       
    43 <br>
       
    44 <a href="../concepts/cdt_c_search.htm">C/C++ search</a><br>
       
    45 <a href="../concepts/cdt_c_indexer.htm">C/C++ Indexer</a><br>
       
    46 <a href="../concepts/cdt_c_indexer_open_close.htm">C/C++ Indexer
       
    47 Opening or Closing a project</a><br>
       
    48 <a href="../concepts/cdt_c_indexer_prog_bar.htm">C/C++ Indexer Progress
       
    49 Bar</a></p>
       
    50 <p><img height="21" width="143" alt="Related tasks"
       
    51  src="../images/ngtasks.gif" border="0"><br>
       
    52 <a href="../tasks/cdt_t_sel_search.htm">Selection Searching for C/C++
       
    53 elements</a><br>
       
    54 </p>
       
    55 <p><img height="21" width="143" alt="Related reference"
       
    56  src="../images/ngref.gif" border="0">
       
    57 <br>
       
    58 <a href="../reference/cdt_u_search.htm">C/C++ search page, Search
       
    59 dialog box</a>
       
    60 <br>
       
    61 <a href="../reference/cdt_u_prop_general_idx.htm">C/C++ Project Properties, Indexer</a>
       
    62 </p>
       
    63 <p>&nbsp;</p>
       
    64 <img alt="IBM Copyright Statement" src="../images/ng00_07.gif">
       
    65 </body>
       
    66 </html>