flex formatter

Note for myself.

good for a little quick cleanup.

Eclipse update site:http://flexformatter.googlecode.com/svn/trunk/FlexFormatter/FlexPrettyPrintCommandUpdateSite/

subclipse – http://subclipse.tigris.org/update_1.6.x

http://sourceforge.net/projects/flexformatter/

http://sourceforge.net/projects/flexformatter/files/

I use this jsut for a quick cleanup of a file, if i download it, or find source code online I want to use… its a nice quick way to get the code fairly readable to my eyes.

use Import (2) and copy and paste the settings below in the Flex Formatter.

#FlexFormatter settings

#Tue Jun 07 10:54:42 CDT 2011

ActionScript.metatagsOnSameLineAsTargetFunction=Bindable

Actionscript.advancedSpacesInsideParensInParameterLists=0

MXML.keepRelativeIndentInMultilineComments=true

MXML.attrsPerLine=1

MXML.blankLinesBeforeTags=0

ASRearr_GroupGettersAndSettersWithStaticProperties=false

Actionscript.keepBlankLines=true

MXML.tagsDoNotFormatInside=.*\:Model,.*\:XML,

Actionscript.blankLinesAtFunctionEnd=0

ASRearr_RemoveExistingCopyrightHeaders=false

ASRearr_ElementSortNamespaces=true

Actionscript.advancedCRBeforeBraceSettings=2047

ASRearr_SortGettersAndSettersWithAssociatedProperties=true

Actionscript.DocCommentKeepBlankLines=true

Actionscript.useGlobalSpacesAroundColons=true

Actionscript.newLineBeforeBindableFunction=true

ASRearr_UseElementPropertyVisibilityOrder=true

Actionscript.useGlobalSpacesInsideParens=true

MXML.KeepScriptCDataOnSameLine=false

Actionscript.wrapExpressionMode=1

Actionscript.blankLinesAtFunctionStart=0

MXML.spacesInsideAttributeBraces=0

Actionscript.breakLinesBeforeArithmeticOperator=false

ASRearr_ElementFunctionVisibilityOrder=public\:true,protected\:true,internal\:true,private\:true,

Actionscript.wrapMethodDeclMode=1

MXML.ScriptIndentTabs=1

ASRearr_ElementStaticPropertyVisibilityOrder=public\:true,protected\:true,internal\:true,private\:true,

Actionscript.useGlobalCRBeforeBrace=true

Actionscript.addBracesToCases=1

Actionscript.wrapArrayDeclMode=1

Actionscript.useGnuBraceIndent=false

MXML.sortAttrData=%xml_namespaces%\nid\nwidth\nheight\n%events%\n

ActionScript.keepRelativeIndentInDocComments=true

ASRearr_ElementOrder=Import,Include,Namespace Definition,Default Namespace,Namespace Use,Static Property,Static Function,Static Initializer,Constructor,Property,Function,

Actionscript.noNewCRsBeforeContinue=false

Actionscript.blankLinesBeforeFunctions=1

Actionscript.advancedWrappingAllArrayItems=false

Actionscript.useLineCommentWrapping=false

MXML.maxLineLength=200

ASRearr_MajorSectionHeader=style\=3|width\=60|blankLines\=4|fillChar\=-|text\=|linesBefore\=0|

ASRearr_ModifierOrder_Function=,override,native,public,private,protected,internal,static,dynamic,final

MXML.blankLinesAfterParentTags=1

Actionscript.wrapMethodCallMode=4

Actionscript.noNewCRsBeforeThrow=false

ASRearr_RemoveExistingSectionHeaders=false

Actionscript.MLCommentHeaderOnSeparateLine=false

ASRearr_UseElementFunctionVisibilityOrder=true

Actionscript.spacesBeforeControlOpenParen=0

Actionscript.noNewCRsBeforeBreak=false

MXML.attrsToKeepOnSameLine=3

ASRearr_UseModifierOrder_Function=false

Actionscript.putEmptyStatementsOnNewLine=true

Actionscript.spacesAroundBinarySymbolicOperator=1

Actionscript.useDocCommentWrapping=false

Flex.useTabs=true

Actionscript.doRearrangeWhileFormatting=true

MXML.sortAttrMode=2

ASRearr_UseGlobalModifierOrder=true

Actionscript.docCommentReflow=false

Actionscript.breakLinesBeforeLogicalOperator=false

ASRearr_ImportOrder=adobe,com,flash,mx,

Actionscript.advancedSpacesInsideParensInOtherPlaces=0

Actionscript.advancedWrappingGraceColumns=5

Actionscript.advancedSpacesInsideArrayRefBrackets=0

MXML.doRemoveNamespacesWhileFormatting=false

ActionScript.spacesBeforeFormalParameters=0

MXML.blankLinesBetweenSiblingTags=1

Actionscript.putElseOnNewLine=true

ASRearr_SectionHeaderMap=\#\n\#Tue Jun 07 10\:54\:42 CDT 2011\n

Actionscript.alwaysGenerateIndent=false

Actionscript.advancedWrappingAllArgs=false

Actionscript.advancedWrappingFirstArrayItem=false

MXML.blankLinesAfterSpecificParentTags=0

ASRearr_SortGettersAndSettersWithAssociatedStaticProperties=true

Actionscript.blankLinesBeforeClasses=1

ASRearr_ElementStaticFunctionVisibilityOrder=public\:true,protected\:true,internal\:true,private\:true,

MXML.blankLinesBeforeClosingTags=0

Actionscript.putWhileOnNewLine=false

MXML.parentTagsToHaveBlankLinesAddedAfterThem=fx\:Declarations,fx\:Script,

Actionscript.maxLineLength=200

MXML.attrWrapMode=52

Actionscript.unindentExpressionTerminators=false

MXML.tagsCanFormat=mx\:List,fx\:List,

MXML.wrapIndentStyle=1000

ActionScript.metatagsOnSameLineAsTargetProperty=Bindable,

ASRearr_UseMetatagOrder=false

MXML.spacesAroundEquals=0

Actionscript.advancedSpacesAroundEqualsInOptionalParameters=1

ASRearr_CopyrightHeader=style\=1|width\=80|blankLines\=2|fillChar\=-|text\= Copyright 2010\n All rights reserved.|linesBefore\=1|

Actionscript.blankLinesBeforeProperties=0

Actionscript.putOpenBraceOnNewLine=true

Actionscript.advancedWrappingPreservePhrases=true

Actionscript.keepElseIfOnSameLine=true

ASRearr_ElementSortStaticFunctions=true

ASRearr_ElementSortIncludes=false

Actionscript.blankLinesBeforeImportBlock=0

Actionscript.newLineBeforeBindableProperty=true

ASRearr_ElementSortMetatags=false

MXML.blankLinesAtCDataStart=0

MXML.addNewlineAfterLastAttr=true

MXML.useFormattingOfBoundAttributes=false

Actionscript.advancedWrappingFirstParm=false

ASRearr_UseImportOrder=true

ASRearr_ElementSortStaticProperties=true

Actionscript.keepSpacesBeforeLineComments=false

Actionscript.advancedWrappingEnforceMax=false

ASRearr_BlankLinesBeforeElement=

Page 1 of 4 | Next page