FlexFormatter AutoFormat
The FlxFormatter allows you to cause a Format or Indent operation to occur when an editor is saved. Operation for ActionScript and
MXML files can be controlled separately. Check the appropriate box and decide whether you want Format or Indent to occur.
Operations of either kind can be performed manually as needed.
Excluding files from AutoFormat
It is awkward if there are certain files that you need to edit, but don't want auto-formatted. The solution is to specify an exclude
list of paths that should not be auto formatted even if they would otherwise be. You can add one or more regular expressions that
match files that fall into this category.
The rules are:
- Use a forward slash '/' as the path separator, regardless of operating system
- Use Java regular expression syntax to specify the mask. See http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html
Examples
all paths containing a package segment of "adobe"
.*/adobe/.*
Actionscript files that come from a third party with "org" package (notice the escaped period before the file extension)
.*/src/org/.*\.as