CLion 2016.2 Help

New C/C++ Source/Header File Dialog

To access the Create New C/C++Source/Header FIle dialog, right click a file or folder in the project view. In the context menu, choose:
New | C++ class or New | C/C++ Source File or New | C/C++ Header File, as desired.

Common Options

Name In this field, type the name of a new class or source/header file.
Type Select the desired file type from the drop-down list, if you need the type, other than default. For more details on the file type definition, refer to the Code Style C/C++ Help page.
Add to targets Select this check box to add the created files to the source files list for the selected target(s).
Targets pane In this pane, select the desired target or multiple targets to which the created files shall be included.
CMakeLists.txt file pane In this pane, see the CMakeLists.txt variable where CLion suggests you to add the created file(s).

New C++ Class

Create header file only Select this check box, if you want to create a header file only for a new class.

New C/C++ Source File

Create an associated header Select this check box, if you want to created a header associated, with the new source file.

See Also

Last modified: 20 July 2016