Indentation needs to be smarter

I realized earlier today that "Indent" mechanism in CLion (and probably in IntelliJ as well) needs to be a bit smarter. I generally want an indentation of 3 spaces BUT when indentation is supposed to happen, I need it to be three spaces past the first character of the previous line. However, I realized that all that seems to be happening is that indentation is just happening in multiples of 3 from the beginning of the line.

As a result of that, when you indent the line following a '{' character, characters start only 2 spaces past, not 3.

 

1 comment

Hi David.

Could you please send us an example so we can understand the case more detailed?

0

Please sign in to leave a comment.