adding new .h or .c file

Answered

Hi All,

I am new to using clion and I have a newbie question. I am able to create, build and run new c projects, but I cannot see how to create/ add new .h or .c files to projects. When the project is open I have tried right clicking on project to add new file but nothing. How can I do this when using clion on a Mac?

Thanks,

Tuurbo46

0
1 comment

Hi, Alex.

You can add a new file to the project via right clicking on the files in the project structure - New - C/C++ Source File or C/C++ Header File. Also you can set the preferred C/C++ source/header files extensions in CLion. You can find out more information in our web help: https://www.jetbrains.com/help/clion/2016.3/code-style-c-c.html#d12231e657.

0

Please sign in to leave a comment.