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