Here are a number of instructions and tips on how to use at best the IDE called CLion from Jetbrains.
Download from the website.
See instructions here.