This question already has an answer here:
Is there any indentation tool for (la)tex?
I currently use TexShop under Mac OSX, so I can either use a TexShop plugin or a command line tool.
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Just have a look to indent.plx. In my opinion an interesting tool. Have a look at LaTeX code sniffer and/or beautifier? for details.
2 years ago