Android Studio – Change the default code style… here is a solution to the problem.
Android Studio – Change the default code style
I’m used to writing code like this:
private String blabla()
{
return "bla";
}
But Android Studio tweaked this code:
private String blabla() {
return "bla";
}
Question: How do I change this option for me?
Solution
Go to File -> Settings.
Then in the dialog, Editor -> Code Style -> Java -> Wrapping and Braces tab, and then you can adjust the braces placement
Remember to “apply” your changes.