Setting File Properties

See Also 

When you set the project properties for your C or C++ project, the relevant properties apply to all folders and files in the project.

By default, a file inherits the code assistance properties, include directories, preprocessor definitions, and C/C++ standard from the project. You can set properties for one or several files independently.

To modify file properties:

  1. In the Projects window, select one or more files whose properties you want to change. Press Shift to select more than one.
  2. Right-click on the selected files and choose Properties.
  3. In the File Properties dialog box, select the configuration for which you want to set a property.
  4. Select a node in the left panel and modify the property using the text fields, drop-down lists, check boxes, and buttons in the right panel.

The General node shows the following properties for a specific file in addition to the name and file path:

Has Code Assistance. Indicates the code assistance state and is dynamically determined.

Excluded From Build. Select this option to prevent the file from building in the selected project configuration.

See C/C++ Project Properties Dialog Box: Compiler for information about the Compiler node properties.

See also
  Setting C and C++ Compiler Options
C/C++ Project Properties Dialog Box: Compiler (General)

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.