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

Run/debug single file

Last modified: 26 May 2024

In CLion, you can compile and run/debug a single file without creating, loading, and building a whole project. This is especially useful if you are getting started with the C or C++ language, and have only one or two files that you want to compile and run. In this case, the concept of a project model might seem too complex and redundant for you.

Follow the steps below to open, compile and run or debug a file in CLion without attaching it to any project model.