CLion formatting range base for loop space before colon
Answered
CLion 2019.1
Formatting a range base 'for' loop. Ctrl-Alt-L to format C++ code gives me
for (auto color: colors)
what I want is a space before the colon
for (auto color : colors)
as per https://github.com/cpplint/cpplint checks.
Editor->Code Style->C/C++->Spaces
Under Other there is After 'for' semicolon and Before 'for' semicolon. Where's the Before 'for' colon?)
Please sign in to leave a comment.
Hi!
Feel free to comment or upvote https://youtrack.jetbrains.com/issue/CPP-3898 in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.
try this