CLion
 
Get CLion
Join the CLion 2025.1 Early Access Program and try out new features before they are released! Find out more

Compile files without build

Last modified: 11 February 2024

To speed up the development process, you may sometimes prefer to compile one file without building the whole project. For this purpose, CLion provides the Recompile action.

Recompile is available for individual source and header files, and also for groups of files selected in the project tree. For headers, CLion uses resolve context to compile one of the source files that include the specified header). Note that Recompile is disabled for directories and non-C/C++ files.