Editing a C or C++ File

Edit your C and C++ files using the Remote C/C++ editor as it provides the following features:

Note: Code analysis features may not have sufficient information available if the parser and indexer are not configured properly. For more information see: Configuring The Parser/Indexer.

To invoke the remote C/C++ editor, select your source file in the Project Explorer view, and either single- or double-click it (depending on your preferences) or right-click and select Open With > Remote C/C++ Editor. Notice that the default editor is indicated by a marker to the left.

Open With > Remote C/C++ Editor

The C/C++ editor does not contain a toolbar itself, but relies on the use of the main toolbar, edit menu, search menu, and key binding actions.

An outline view is associated with the remote C/C++ editor. It shows the structure of the active C, C++ or makefile. It is updated as you edit these files:

Open With > Remote C/C++ Editor's Outline View

More information on the outline view can be found here.

You can also open declarations from within the editor. For example, select a line in your source file that contains #include, right-click and select Open Declaration:

Open Declaration

The source for the include file will open in the editor.

You can perform a number of additional tasks including opening a type hierarchy or opening a call hierarchy by selecting an element from within the editor and right-clicking. For more information see: Analyze code.

Related tasks
Creating a remote connection
Creating a Local/Remote C/C++ project
Creating a C or C++ source file
Creating a makefile
Remote Content Assist
Building a C/C++ project