Writing code

When you create a non-empty project, the IDE creates the directory structure and generates default source files and makefiles based on the project type that you select. For a QNX Executable project, the source file containing the main() function is automatically opened for editing.

Note: If you haven't switched to the C/C++ perspective, we recommend doing so for writing code. This perspective gives you access to the Eclipse-based C/C++ Development Toolkit (CDT), which lets you efficiently manage and develop projects based on the C and/or C++ programming language.

The default C/C++ editor contains syntax highlighting and code assist features to help you write C and C++ code; information on working with this editor can be found in the Task > Writing code entry of the C/C++ Development User Guide. The IDE actually contains many other built-in editors; you can select a particular editor for opening a file, as explained in Editors.

To display, browse, and open existing project resources—header files, source code files, and makefiles, you can expand the project's entry in the Project Explorer view and double-click individual file entries. Using this same view or the File menu, you can add any of these resource types as needed.