- Qt Creator Manual
- Create files
- Qt Creator Manual 12.0.0-beta2

How To

# Create files

Use wizard templates to add individual files to your projects.

To add files to projects, select File > New File, and then select the type of the file.

Note: You can also use the `f` locator filter to create a new file and open it in the editor. For more information, see Creating Files and Directories from Locator. However, you must manually add the created file to a project.

## Select file type

The following table lists the types of wizard templates that you can use for creating files. The New File dialog shows detailed information about each file wizard template.

Category | Purpose
--- | ---
C/C++ | Header and source files for new classes.
Modeling | State Chart XML (SCXML) files, Universal Modeling Language (UML) style models, and scratch models that use a temporary file.
Qt | Source and header files for item, table, or list models, Qt Designer forms and a matching classes for Qt Widgets projects, Qt resource files, as well as QML and JavaScript files for Qt Quick projects.
Compiler Explorer | Example setup for using Compiler Explorer to compile C++ or Python code.
GLSL | OpenGL fragment and vertex shaders.
General | Markdown files, empty files that you can save with any filename extension, and scratch buffers that use temporary files.
Java | Class files.
Python | Class and script files for Python projects.
vcpkg (experimental) | vcpkg package manager manifest files (vcpkg.json).
Nim (experimental) | Empty Nim source and script files.

See also Create compiler explorer sessions, Create C++ classes, Create OpenGL fragment and vertex shaders, Create resource files, and Use project wizards.

How To