推 7Yue 大的文章-- Flex代码格式化插件 裡介紹的屌貨:Flex Formatter ,這是可以在Flex Builder或Eclipse裡面自動排列(格式化)程式碼的外掛。
安裝方式
(1) 下載.jar 檔
(2) 丟到Flex Builder 的plugin資料夾 (or "dropins" dir if you are using Eclipse 3.4 or greater)
(3) 重新啟動Flex Builder (如果沒有出現,就在開啟捷徑的"目標"最後面加上-clean)
(4) 安裝完畢,工具列上就會出現兩個新的formatter按鈕了
「Format Flex Code」可依全部格式(ex: 字的間隔、if格式等等)重新format,「Indent Flex Code」只改變行的位置,而不更動其他的格式。
Here is the blog of Mediakid (alias). You will find a mix of code, Flash Platform, Qt and other daily random thoughs I may have.




pcb
09/2/5 下午7:21
好東西啊!
mediakid
09/2/6 上午9:13
對啊!這樣子應該可以找一下有沒其他更多的plugin了。
mediakid
09/3/23 下午12:41
indideRIA 上的一篇文章
http://www.insideria.com/2009/03/actionscript-pretty-printer.html
作者分享了他修改過的coding style的設定。實際測試後,我想只是改了 { } 的位置,讓第一個 { 不要單獨自己換行,徒增整體程式長度。