Flex Formatter Overview
FlexFormatter is a tool for indenting or formatting your MXML or ActionScript code.
- Indenting means adjusting the leading whitespace on a line.
- Formatting means adjusting all whitespace, including newlines.
The FlexFormatter also adds the possibility of going beyond formatting by allowing you to modify the order of MXML attributes
as part of formatting.
The FlexFormatter primarily operates on .mxml and .as files. It is also enabled for .xml files should that prove useful, though
they will be treated in the same way as .mxml files.
By default, Ctrl+I is mapped to Indent, and Ctrl+Shift+F is mapped to Format, but only in the "Editing Flex Source" context
of FlexBuilder. If you do not have FlexBuilder, you can go to the Window->Preferences->General-Keys preference page
and search for "MXML" to find the commands Indent MXML/ActionScript and Format MXML/ActionScript and map them in
another context. However, the toolbar icons should still operate regardless.