SealsRock12
SealsRock12

Reputation: 191

Make CLion have C++ Source Files as .CC

In CLion, is there a way to make all C++ source files have the .cc extension instead of the .cpp extension by default? For example, in a new project, there is a main.cpp file. I want it to be main.cc.

Upvotes: 1

Views: 1268

Answers (2)

Victor Sergienko
Victor Sergienko

Reputation: 13475

When creating a new file, click a settings icon near the file type selector.

New file dialog

You will get to a settings window where you can set the extensions:

enter image description here

Upvotes: 0

uta
uta

Reputation: 2069

Yes, you can! You can rename file main.cpp or any other from context menu or by Shift+F6 hot keys. enter image description here

Upvotes: 1

Related Questions