Flex Formatter是Eclipse編程工具的插件, 可以幫助代碼變得更加整齊,使用ActionScript編寫,主要用于格式化ActionScript 和 MXML 代碼,無論你的代碼多么不美觀,使用這個(gè)就可以讓他們變得漂亮整齊。
怎么使用?
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.