title: How to run a .cpp file by xcode without adding it to a project?
body: <p>I am trying to run my old .cpp files with double clicking on them to get opened by xcode. But when the code opens in the xcode editor no Run option exists. I tried to wrap my head around it and the only solution I found is to create a new project and then adding this file to that. What should I do?</p>