Source File or Group Properties

Parent Previous Next

Source File or Group Properties.

Every project includes source files, which contains the source code stored as raw text. Each source file is identified by a set of properties, which are stored as part of the project in the project file.


Larger projects often divide the source files into a hierarchy of groups allowing the Project Explorer to present the files by their functionality. Each group is identified by a set of properties, which are stored as part of the project.


If the properties of a source file or a group are changed, an asterisk is prefixed on the name of the project node indicating the project has been changed and must be saved to file.



Source File Properties.

The properties of a source file are presented and explained next:




Property

Description

Name

This is the name of the source file as it appear in the Project Explorer and in the tab-page header of the editor.

Include in Compilation

This property must be enabled for the source code to be part of the compilation. While disabled the file content is considered ordinary text and is ignored by the compiler.

Hint

This text will be presented as a tool tip for the tree node in the Project Explorer. If no text is present, the path of the file is shown instead.

File

This is the path of the source file. The file extension does not follow any predefined rules or limitations, however we use .src for files containing source code.


TIP: Please notice the possibility of using the placeholder $(ProjectDir) as described here.



Group Properties.

Each group is defined by these simple properties:




Property

Description

Name

This is the name of the group as it appear in the Project Explorer.

Hint

This text will be presented as a tool tip for the tree node in the Project Explorer.