Using the context menu, I can easily create a .cpp and a header file in CLion by right clicking and new > C++ Class.
The header file has a .h extension. How do I make .hpp the default header extension?
Right click and select new > C++ Class.
Click the settings icon next to the type drop down box:

Select the desired header extension:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With