Flex Formatter Overview

FlexFormatter is a tool for indenting or formatting your MXML or ActionScript code. 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.