Marco Massenzio
Marco Massenzio

Reputation: 3012

Configure C++ Google Style in CLion IDE

This is a rather easy matter in IntelliJ (and setting up PEP8 in PyCharm), but I have been googling and I couldn't find a configuration file (I presume in XML or whatever CLion uses) that I could use to configure it to adhere to the Google style guide.

Is this a "future feature" or am I missing something fundamental?

Of course, I can configure it manually, but it's a tedious and time-consuming operation; if someone has already done that, awesome and thanks for sharing!

Upvotes: 16

Views: 16499

Answers (3)

Higigig
Higigig

Reputation: 1275

Go to Setting/Preferences | Editor | Code Style | C/C++ then click the button "Set from..." in the top right and select "Google."

Upvotes: 6

DavidZemon
DavidZemon

Reputation: 531

CLion now supports this natively, as of v1.1. A blog post from JetBrains shows how to use pre-defined code styles here. Download the latest version of CLion here.

Upvotes: 5

uta
uta

Reputation: 2069

You can try cpp-lint plugin. Code style support coming soon!

Upvotes: 1

Related Questions