FlexFormatter

If you are looking for code formatting tools for Flex Builder, scoot over to https://sourceforge.net/projects/flexformatter/ Ernest Pasour has built an excellent set of source code tools for Flex Builder.

  • Code Formatter
  • Auto Commenting
  • Source Code Reordering

The downloaded zip file can be extracted into the eclipse/dropins folder, and it’ll just work when you restart eclipse. Ernest was also kind enough to provide instructions for source formatting from the command line, so you can format a whole tree of source code at once.

Great for getting your code painlessly adhering to the Flex Coding Conventions.

FlexFormatter also provides a tool for adding asdoc stub comments, (much like my as3dac tool) and should be easy to use for anyone, (admittedly my scripts aren’t for the faint hearted.)

The source code re-ordering tool allows you to re sort the appearance of various parts of a class automatically, constant, constructor, class fields, accessors, mutators and methods all sorted for you effortlessly.

It’s some really great work, and a useful addition to your flex tool set.

(Ernest’s Flex Formatting command line usage guide is here)


 
 
 

2 Responses to “FlexFormatter”

  1. David R
    7. July 2009 um 04:22

    FYI both code reformatting and asdoc stub generation are built into the next version of Flex Builder (aka Flash Builder). It doesn’t have the re-ordering stuff though as far as I can tell.

  2. Jason Milkins
    7. July 2009 um 09:39

    @David, source reformatting beyond “Correct Indentation” has yet to be added to Flash Builder, and the ASDoc stub generation is member by member, not full class generation. With the FlexFormatter plugin, you can also reformat classes en-masse from the command-line.

Leave a Reply