Reputation: 1272
I want to create an array like looks like this for example:
String[] arr =
{
};
But Android Studio code style settings will only let me do these:
String[] arr = {
};
or
String[] arr =
{
};
I know that you can tweak these settings in the Code Style => Java
section, but I can't figure out which one solves my problem. I've spent 30 minutes on it already :<
Upvotes: 0
Views: 258
Reputation: 2611
Under Editor>Code Style>Java>Wrapping and Braces, go to braces placement and set each of the options to Next Line. That will set the opening brace in the next line for class declaration, method declaration and everything else.
Upvotes: 1