Similar to the question for eclipse,
In Window You can use Ctrl + alt + enter reformat code in your Android studio it is best way indent code properly manner