Oftentimes i will be searching the net for a useful class or code snippet, only to be horrified by its inherently ugly formatting. I’m obsessed with code neatness and readability, and it really pisses me off when i have to reformat an entire class by hand.

Enter Flex Formatter from Ernest Pasour

This incredibly useful little set of three plugins for Flex Builder 3 (and possibly Flash Builder 4 – i haven’t tried yet, can someone confirm this?) provides you with a vast variety of code formatting options. Below is a couple of screenshots of the configuration pages:

ActionScript

actionscript

MXML

mxml

Even apart from all of its amazing code reformatter tools, FlexFormatter 0.6.24 has the ability to generate ASDoc comments! By now you should be convinced, so here’s the installation process:

  1. Download zip file from here
  2. Unzip contents (3 .jar files) to your plugins directory inside of your Flex Builder 3 installation
  3. Restart Flex Builder and you will notice there will be 5 new buttons in your toolbar:

menu

Happy formatting!