Multiline array initialization formatting

已回答

Is it possible to have multiline arrays formatted like this? I tried playing with all settings for hours and couldn't find a solution.

0

Hi, Jeremie! Please try to set the following option in File| Settings | Editor | Code Style | C/C++ > Wrapping and Braces:

1) In Braces placement section set Other to Next line;

2) In Initializer lists section set Wrap always;

3) In Initializer lists section select the New line after '{' and Place '}' on new line options.

Is the result of Code | Reformat Code is suitable for you in this case?

 

0

请先登录再写评论。