carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/cheatsheets/cs_cdt_basic.xml
changeset 5 684bf18fdedf
equal deleted inserted replaced
4:4764c8c88759 5:684bf18fdedf
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 
       
     3 <cheatsheet title="Creating C/C++ projects">
       
     4    <intro href="/org.eclipse.cdt.doc.user/concepts/cdt_c_projects.htm">
       
     5       <description>
       
     6          This guide will walk you though the process of creating a simple &quot;Hello World&quot;  C/C++ application using the CDT.
       
     7       </description>
       
     8    </intro>
       
     9    <item title="C/C++ workbench setup" dialog="false" skip="false" href="/org.eclipse.cdt.doc.user/concepts/cdt_c_perspectives.htm">
       
    10       <description>
       
    11          Start by setting up the CDT development environment.
       
    12       </description>
       
    13       <subitem label="Open C/C++ perspective." skip="true">
       
    14          <command serialization="org.eclipse.ui.perspectives.showPerspective(org.eclipse.ui.perspectives.showPerspective.perspectiveId=org.eclipse.cdt.ui.CPerspective)" confirm="false">
       
    15          </command>
       
    16       </subitem>
       
    17    </item>
       
    18    <item title="Creating a C/C++ project" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_new_proj_wiz.htm">
       
    19       <description>
       
    20          Create a C++ or C project by choosing one of the following wizards.
       
    21       </description>
       
    22       <subitem label="Click File &gt; New &gt; C++ Project to launch the new C++ project wizard." skip="true">
       
    23          <command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.ui.wizards.NewCWizard1)" confirm="false">
       
    24          </command>
       
    25       </subitem>
       
    26       <subitem label="Click File &gt; New &gt; C Project to launch the new C project wizard." skip="true">
       
    27          <command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.ui.wizards.NewCWizard2)" confirm="false">
       
    28          </command>
       
    29       </subitem>
       
    30       <subitem label="Choose Executable &gt; Hello World C/C++ Example from the Project types list." skip="false">
       
    31       </subitem>
       
    32       <subitem label="Type a project name, set its location, and select a Toolchain, then click Next." skip="false">
       
    33       </subitem>
       
    34       <subitem label="Enter Basic Project information, then click Next." skip="true">
       
    35       </subitem>
       
    36       <subitem label="Select platforms and configurations to show in the Run/Debug menus, click Finish." skip="true">
       
    37       </subitem>
       
    38    </item>
       
    39    <item title="Building projects and inspecting files" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/tasks/cdt_o_build_task.htm">
       
    40       <description>
       
    41          Build the program to create a binary and examine it in Project Explorer and Outline views.
       
    42       </description>
       
    43       <subitem label="Click Project &gt; Build All to create a binary of your source file." skip="true">
       
    44 		<!--
       
    45          <command serialization="org.eclipse.ui.project.buildAll" confirm="false">
       
    46          </command>
       
    47 		-->
       
    48       </subitem>
       
    49       <subitem label="In the Project Explorer view, open the Binaries element and examine the program&apos;s binary." skip="true">
       
    50       </subitem>
       
    51       <subitem label="Open the .cpp file in the project and examine the Outline view." skip="true">
       
    52 		 <command serialization="org.eclipse.ui.views.showView(org.eclipse.ui.views.showView.viewId=org.eclipse.cdt.ui.edit.open.outline)" confirm="false">
       
    53          </command>
       
    54 		<!--
       
    55 		 <command serialization="org.eclipse.cdt.ui.edit.open.outline" confirm="false">
       
    56          </command>
       
    57 		-->
       
    58       </subitem>
       
    59    </item>
       
    60    <item title="Running the program" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_run_dbg_main.htm">
       
    61       <description>
       
    62          The final step is to create a run configuration that defines how the program is launched. Note you can define multiple run configurations if desired, each with its own settings.
       
    63       </description>
       
    64       <subitem label="Select the project and click Run As &gt; Open Run Dialog... to launch the program." skip="false">
       
    65 		<!--
       
    66          <command serialization="org.eclipse.debug.ui.commands.OpenRunConfigurations" confirm="false">
       
    67          </command>
       
    68 		-->
       
    69       </subitem>
       
    70       <subitem label="Create a run configuration by double-clicking the C/C++ Local Application item." skip="false">
       
    71       </subitem>
       
    72       <subitem label="Type a configuration name in the Name box." skip="true">
       
    73       </subitem>
       
    74       <subitem label="If no binary name appears in the C/C++ Application box, click Search Project to select one in the Program Selection dialog." skip="true">
       
    75       </subitem>
       
    76       <subitem label="Click Apply, then click Run to launch the program. The Console view displays the program output." skip="true">
       
    77          <command serialization="org.eclipse.ui.views.showView(org.eclipse.ui.views.showView.viewId=org.eclipse.ui.views.ContentOutline)" confirm="false">
       
    78          </command>
       
    79       </subitem>
       
    80    </item>
       
    81 </cheatsheet>