Creating your C++ file

Once you have created a new remote C/C++ project, you can begin coding your program. The .cpp file that you create will be saved in the project folder you just created in Creating a remote project.

Files are edited in the Remote C/C++ Editor located to the right of the Project Explorer view. The left margin of the Remote C/C++ Editor, called the marker bar, displays icons for items such as bookmarks, breakpoints, and compiler errors and warnings.

For more information about:

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.

Your new .cpp file is displayed in the Project Explorer view. Before you can build your newly created project, you must create a makefile. See Creating your makefile.


Related tasks
Creating a C/C++ file
Related reference
Remote C/C++ Editor