Different directories for headers and sources when using "New" -> "C++ Class"

Hi! Is there a way to tell CLion to use different directories for the header (.h) and source (.cpp) files when creating a new class with the New -> C++ Class template? E.g. if you have the following project structure:

Project/
-- include/
-- -- class1.h
-- -- class2.h
-- src/
-- -- class1.cpp
-- -- class2.cpp

I know how to do it by manually moving the files and editing CMakeLists.txt accordingly, but it would be nice to have it done automatically.

1 comment

Hi Martin.

It hasn't been implemented yet. We have a feature request in the tracker: https://youtrack.jetbrains.com/issue/CPP-5980. Feel free to comment or upvote.

1

Please sign in to leave a comment.