Template code formatting in Workbench

Just like eclipse and other IDEs have an option to format/ beautify your code with a click…Does Workbench also have any similar feature to format the template code?

manvinder

Since Workbench is Eclipse, you do have the ability to format your template code…although it’ll take more than a single click…

Open the template > Right Click on template code > Format. You can also run tidy…although I don’t find this useful .

The format knows how to deal with html tags and such and some aspects of velocity macros, but if you want your code tabbed, you should look at it. I don’t use this much because I don’t like the way it formats the code, but ymmv…