In Code::Blocks(http://www.codeblocks.org/) with right click and Format use AStyle all code beautifier. Very very nice function indeed.
Why not in TexStudio?
In case TXS it is possible to use latexindent.exe from MikTeX package, or perl script. Notepad++, for example, has a plugin "Indent by fold", it works better than latexindent. Of course, there are methods looks like crutch. May be it is possible to made a something in TXS. Thus, I fully support this feature request.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In case TXS it is possible to use latexindent.exe from MikTeX package, or perl script. Notepad++, for example, has a plugin "Indent by fold", it works better than latexindent. Of course, there are methods looks like crutch. May be it is possible to made a something in TXS. Thus, I fully support this feature request.