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

0
9 comments

Hello!

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

0

Oops .. I have updated the image 

0

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

Thank for your reply,

Here the settings :

0

Please try setting "Continuation indent" to 4

0

Well done, thanks !

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

0

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

0

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

0

Please sign in to leave a comment.