Trying to set CLion to start with .c file and correct CMAKE at start


Hi all,

I'm just starting out with prgramming C and I'm trying to get to grips with CLion as my chosen IDE.

Can anyone tell me what settings I need to change to make CLion open a .c file and the correct CMAKE parameters for C instead of C++ by default?


Comment actions Permalink


Now CLion supports automatic creation of C++ projects only, but you can choose the preferred C/C++ source/header files extensions via File | Settings | Editor | Code Style | C/C++ | New File Extensions. You can find out more details in CLion web help: As for the CMakeLists.txt you should change extension of main.cpp in set command manually.

Also we have a feature request about C project creation in the tracker:
Feel free to comment or upvote.
Comment actions Permalink

We've added C project template in CLion 2016.3.2 EAP. Please, read more details in our blog: Your feedback is more than welcome!


Please sign in to leave a comment.