How do I set paths for header and source files in new class?
When I add a new class I want to create the header file in a special folder called "include" within the project root and the source file in a folder called "src", also within the project root. This enables me to maintain separate headers from source files.
I can create a cpp/hpp pair as usual via IDE -> new class and copy files manually to these two folders and it works fine, but is there a way to customize this path so "new class" operation automatically places header file and source file in given paths?
I have cmake set already to add include to include_directories and source files picked from src so everything is fine there. I just want to customize the "new class" operation behavior. Can this be done in some way please?
Thanks
Please sign in to leave a comment.
Unfortunately, it hasn't been implemented in CLion yet: https://youtrack.jetbrains.com/issue/CPP-5980. Feel free to comment or upvote.