Multiline initialization formatting

Completed

Hello, 

When I reformat my code I obtain that with 8 space instead of 4 :

I would like that : 

Which are the settings to apply for that?

Thanks

9 comments
Comment actions Permalink

Hello!

The images look the same. Could you please recheck whether they are correct? Thanks!

0
Comment actions Permalink

Oops .. I have updated the image 

0
Comment actions Permalink

Please go to File | Settings | Editor | Code Style | C/C++, open the "Tabs and Indents" tab and check what values you have in the "Indent" and "Continuation indent" fields. 

0
Comment actions Permalink

Thank for your reply,

Here the settings :

0
Comment actions Permalink

Please try setting "Continuation indent" to 4

0
Comment actions Permalink

Well done, thanks !

And which is the setting to indent also the comments lines ?

0
Comment actions Permalink

Strange, on my side comments are aligned as on the second picture. What result do you get after Code | Reformat Code?

0
Comment actions Permalink

Found in "Wrapping and Braces" > "Keep when reformatting" > Uncheck "Comment at first"

0

Please sign in to leave a comment.