Flex Formatter是Eclipse编程工具的插件, 可以帮助代码变得更加整齐,使用ActionScript编写,主要用于格式化ActionScript 和 MXML 代码,无论你的代码多么不美观,使用这个就可以让他们变得漂亮整齐。
怎么使用?
Start up FlexBuilder / FlashBuilder.
From the Help menu, select ‘Software Updates > Find and Install…’
Select ‘Search for new features to install’ and click ‘Next >’
从本地安装,打开目录到解压目录中
Click OK
Make sure only ‘Flex Formatter’ is selected in the ‘Sites to search’ list, and click ‘Finish’
Follow the prompts to install Flex Formatter, and restart the IDE
Once you’ve restarted, you should see the Flex Formatter bar with buttons to ASDoc, format, and rearrange your code. You should also have a ‘Flex Formatting’ entry in preferences.