Creating a C/C++ file

To create a C++ file:

  1. In the Project Explorer view, right-click a project, and select New > File > Other.
    New > File > Other in Projects View
  2. Select Source file under C++.
    New Source file in New Wizard Dialog
  3. In the Source File box, type a name followed by the appropriate extension. Select a template.
  4. Click Finish.
    New Source File Wizard
  5. The file will open in the Remote C/C++ editor.

  6. Enter your code in the editor view..
    Editor view with a sample code
  7. Type CTRL+S to save the file.

Editing a C/C++ file

Files are edited in the Remote C/C++ editor. By default, the editor is located to the right of the Project Explorer view.

The marker bar on the left margin of the Remote C/C++ editor, displays icons for errors, warnings, bookmarks, breakpoints and tasks.

For more information on the marker bar, see Workbench User Guide > Reference > User interface information > Views and editors > Editor area.

Related reference
Remote C/C++ Editor