Reputation: 5184
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?
Upvotes: 3
Views: 5851
Reputation: 20306
Settings->Editor->Code Style->C/C++->Tab "New File Extensions"
and then:
Upvotes: 0
Reputation: 5184
Right click and select new
> C++ Class
.
Click the settings icon next to the type drop down box:
Select the desired header extension:
Upvotes: 6