It is really hard to indent code with more than 100 lines using a phone. It was a nightmare to me indenting the code using the space bar on the phone. Since you can't see lines on the top, you can't indent without scrolling up and down. Even if you indent correctly, it gives errors that it is not indented properly. It is very hard to count the number of spaces on a phone. Wouldn't it be convenient if there was an automatic indentation button, at least when you are not using indent sensitive languages like Python?
Edit
I was trying to edit the code in the question (to add few lines), but when I copied and pasted, all the indentation was gone.
{ }
or press Ctrl-K. But as Bill mentions, use the best device/environment for the task at hand. – Heretic Monkey Dec 29 '16 at 16:47