Jun 05
Flex Formatter Eclipse Plug-in
ActionScript, Air, Flash Builder, Flex, Flex Builder, eclipse, tips 'n tricks Add commentsIf you’re using Eclipse and Flash/Flex Builder, you might want to have a look at the Flex Formatter Plug-in. It’s a great add-on that allows you to (auto-)format your ActionScript and MXML files, based on the templates you define.
This is a key feature that is still missing in Flash/Flex Builder in my opinion.
More info: http://sourceforge.net/projects/flexformatter/
Add to Bloglines - Digg This! - del.icio.us - Stumble It! - Twit This! - Technorati links - Share on Facebook - Feedburner
Christophe Herreman is a software developer living in Belgium. He's working on high-end Flex and AIR solutions at 
June 5th, 2009 at 7:44 pm
Hello Christophe,
Usefull plugin for Flex Builder indeed.
FYI:
It’s now a Ctrl+I (or two clicks) away in FlashBuilder.
June 5th, 2009 at 7:51 pm
Hi François,
I’m aware of that but unfortunately this only correct the indentation of the code. The Flex Formatter will also correct spaces, braces, newlines, and a lot more based on your predefined settings. The nice thing is that you can also export the settings as a template and pass around your team members.
June 6th, 2009 at 1:08 pm
Nice! I always hate cleaning up my own mess manually.
June 8th, 2009 at 3:11 am
been on the lookout for something like this… shot…
June 12th, 2009 at 11:38 am
Wow this is cool indeed! Nice tip!
@François
the new version (0.6.20) the formatting is 1 click away as buttons are shown in the task bar on the top.
you can even let it handle stuff automatically on file save.
Arnoud
June 12th, 2009 at 12:00 pm
FDT has had this for a while now. I find myself hitting the format key more than I hit save.
July 15th, 2009 at 5:46 am
How to install it on flex builder.
thank you
July 15th, 2009 at 8:30 am
To install this plugin, use the update site at http://flexformatter.googlecode.com/svn/trunk/FlexFormatter/FlexPrettyPrintCommandUpdateSite
August 20th, 2009 at 3:00 pm
thanks so much. now i like to write codes more than before
but i have a question.
i think ctrl + shift + f do auto format or this shortcut came after installation. if someone didnt install this plug yet please try ctrl + shift + f. if its works flex has got an auto format shortcut already
September 7th, 2009 at 12:18 pm
If you are using the Adobe standards, you will need to remove the spaces around the “=” otherwise the design view won’t see the properties, and will add another attribute when changed.
October 7th, 2009 at 4:33 pm
Has anyone tried to run an ANT script to run the flex formatter on a whole package/folder?