Indentation for nested for loops

Sometimes I like to format nested for loops like this:

for (int i = 0; i < 10; i++) for (int j = 0; j < 10; j++)
{
// do something
// ...
}

However, it seems the closest I can get in CLion is this:

 for (int i = 0; i < 10; i++) for (int j = 0; j < 10; j++)
{
// do something
// ...
}

How can I fix this? Thanks!

2 comments
Comment actions Permalink

Spencer, it hasn't been implemented yet. Please file a feature request in our tracker: https://youtrack.jetbrains.com/issues/CPP.

0

Please sign in to leave a comment.