Formatting your Flex code in Flex Builder 3
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
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:
- Download zip file from here
- Unzip contents (3 .jar files) to your plugins directory inside of your Flex Builder 3 installation
- Restart Flex Builder and you will notice there will be 5 new buttons in your toolbar:
Happy formatting!
| Print article | This entry was posted by Danny Kopping on July 9, 2009 at 10:51 am, and is filed under ActionScript 3.0, Flex, Tools. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |


about 2 years ago
I just installed in Flash Builder 4 beta 1, and it seems to work.
about 2 years ago
Thanks Tobias! Good to know for when we all finally make the move once it’s out of beta.
about 1 year ago
Great job. It works in Flash Builder 4 too. thanks