1

I would like to use the formatter to enforce array declarations to keep the [] with the type and not with the variable. I'm not seeing a formatter option for this though, but I'm not sure if I'm just missing it.

1 Answer 1

1

There is an inspection for this called "C-style array declaration". It has a quick fix to automatically move the brackets to the type.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.