Flash Builder 4中Ctrl + A + I也能實現代碼對齊。工具畢竟仍是工具,仍是多靠本身保持良好代碼的"美觀性"。
安裝:
1. 點擊菜單中的 Help-> install new software
2. 選中單選框: search for new features to install
3. Next
4. 點擊 New Remote Site
5. 輸入:
Name:
wordwrap
URL:http://flexformatter.googlecode.com/svn/trunk/FlexFormatter/FlexPrettyPrintCommandUpdateSite
6. ok (以後的提示點肯定就能夠了.
在寫代碼的窗口中右鍵, 能看到一個virtual word wrap 把它點中就能實現自動換行了。
使用方法:
1.在代碼中按 Ctrl + Shift + f.
2.工具欄中也有
格式化配置:
菜單欄 - 窗口- 屬性 - 左側欄Flex formating. 本身看看吧...