Array brace alignment

The array brace alignment seems to have changed in one of the latest releases (>= 2020.x maybe?).

If I'm just initialising an array, such as:

I get the required indentation.. the closing brace is aligned with the array var.

However, in this scenario...

when hitting enter, I get:

where I actually want:

 

This used to be the behaviour, but I can't for the life of me find anything in the settings that would bring this back. Is it possible?

 

Cheers..

  Ian

 

0
2 comments

Hi there,

Please check this answer: https://stackoverflow.com/a/61044335/783119

If that does not resolve your issue: please export your code style in XML format and share the file.

1
Avatar
Permanently deleted user

Hi Andriy..

Thank you for that! Just unchecking the 'Align with multiline' in that settings block fixed the problem for me. Unfortunately, none of the example code to the right of that settings window is covered by that particular feature and personally, it didn't seem an obvious choice of setting for that scenario either (as it specifically mentions 'arguments') whereas other settings are more obvious.

I had spent some time looking around but clearly missed that post (maybe wrong search criteria) and just gave up and continued coding... so really appreciate your help with this =)

 

Cheers..

  Ian

 

0

Please sign in to leave a comment.