How to Create, Compile, And Run a single file in CLion

前端 未结 6 471
情话喂你
情话喂你 2021-01-31 03:07

I am working on some c++ stuff and I hate having to create a whole new project just to run a few things on a file.

I also don\'t like how when you creat

6条回答
  •  死守一世寂寞
    2021-01-31 03:57

    1. install plugin inside CLion "C/C+​+​ Single File Execution"
    2. go to that file that you want to execute and right click then select last option i.e. add single executable single c/cpp file
    3. go to run option or press Alt + shift + f10 and select file that you want to run

提交回复
热议问题