Reputation: 1019
Is there an option in android studio to leave one-line method when reformatting code ? For example, for a simple getter, i prefer this style of coding:
public int getPosition() {return mPosition;}
But, when i reformat the code, this method is changed like this:
public int getPosition() {
return mPosition;
}
Upvotes: 11
Views: 2878
Reputation: 1019
Finally, I've found the solution.
And it just go fine!
Upvotes: 19