I want to examine a lot of little cpp files that have int main() , and run only one of them at one running . something like this -

Is there any way to do that without open new project for every cpp file ?
No. In a project, you cannot have multiple main() function.
You can rename them to test1(), test2(), test3(), and call them one by one from main(). That is what I do usually.
test1, as #include "test1.h", at the beginning of the main.cpp file right?