kpozin
kpozin

Reputation: 26969

Change variable naming style for C++ in CLion

In CLion, the default naming style for local variables is camelCase. The C++ codebase that I'm working in has a convention of using snake_case for this. Is there any way to change the naming style for categories of symbols (local variables, instance variables, etc.)?

I would expect such a setting to appear in Settings > Editor > Code Style > C/C++ > Code Generation, but no such luck.

Screenshot of Settings > Editor > Code Style > C/C++

Upvotes: 3

Views: 1175

Answers (1)

kpozin
kpozin

Reputation: 26969

Settings > Editor > Code Style > C/C++ > Naming Convention

This is a new feature in CLion as of release 2019.1.

Upvotes: 3

Related Questions