java - Android Studio : Too much indendation in code formatting -
i've formatted next code in android studio:
msignupbutton.setonclicklistener(new view.onclicklistener() { @override public void onclick(view v) { mvalidator.validate(); } } );
the indentation of onclicklistener deep. after looking @ code formatting settings, couldn't find way cut down it. there way?
this how indent intellij. uses less lines. using default code formatting settings in intellij
msignupbutton.setonclicklistener( // note: set new on next line. new view.onclicklistener() { @override public void onclick(view v) { mvalidator.validate(); } } );
this in java 8,
msignupbutton.setonclicklistener(mvalidator::validate);
java intellij-idea android-studio
No comments:
Post a Comment