CLion Code Style: Space after // ?

Answered

Greetings!

I searched for some hints about code style in CLion.
"Reformat code" is a really nice thing (even if Ctrl+Alt+L normally locks the screen in Mageia), but seems to ignore "//blabla" which I want to be changed to "// blabla".

While it is possible to configure comment blocks, it seems either I overlooked an option to format single line comments or Jetbrains overlooked them in their code styles. Right now I'm expecting the first ;-)
Any hints where I can find that?


Kind regards,
Viktor

P.S. By the way: when trying to open https://youtrack.jetbrains.com/issues/CPP I get a deadlock:
URL changed constantly, at some point I pressed stop and got the following: https://youtrack.jetbrains.com/oauth#scope=869c54ca-878c-4f0a-870d-a081021bcdbd+0-0-0-0-0&expires_in=3600&token_type=Bearer&access_token=1435186811863.869c54ca-878c-4f0a-870d-a081021bcdbd.7334cf3f-10b4-47a4-9e77-07e382775999.869c54ca-878c-4f0a-870d-a081021bcdbd+0-0-0-0-0;1.MCwCFA9shd/szZWWFfyuZujHJZ2RU4axAhReTlOXYdzObhEoXsVrx4jzkJAtEw==&state=a3c93bd4-6d7a-4d77-a801-85abcc240b56
Browser is Konqueror 4.14.3 on Mageia 5 (when using Firefox, it works)

3 comments
Comment actions Permalink

Hi Victor,

thank you for contacting us.

Currently there is no such a setting in CLion.. And we don't have that in our future plans.
Although, if such a capability is valuable for your, you are welcomed to create a ticket in YouTrack and vote for it. A considerable amount of votes for that feature would encourage us to launch it.

Sorry for the long delay with answer.

0
Comment actions Permalink

Just would like to mention that CPP-12171 was implemented and the Add a space at comment start option will be available in the next 2018.1 EAP.

1

Please sign in to leave a comment.