【转】Flex Builder 3代码格式化方法

时间:2013-02-01 阅读:
Flex Builder的最新版本已经到了4.5,可是代码格式化工具并没有集成在安装版本中,需要通过其他途径来实现。 下面提供一个安装插件的方法实现Flex代码格式化: 1. 点击菜单中的 Help-> Software Updates-> Find and Instal... 2. 选中单选框: Search for new features to install 3. Next 4. 点击 New Remote Site 5. 输入 Name:FlexFormatter URL:http://flexformatter.googlecode.com/svn/trunk/FlexFormatter/FlexPrett

Flex Builder的最新版本已经到了4.5,可是代码格式化工具并没有集成在安装版本中,需要通过其他途径来实现。

下面提供一个安装插件的方法实现Flex代码格式化:     

1. 点击菜单中的 Help-> Software Updates-> Find and Instal...

2. 选中单选框: Search for new features to install

3. Next

4. 点击 New Remote Site

5. 输入 Name:FlexFormatter

        URL:http://flexformatter.googlecode.com/svn/trunk/FlexFormatter/FlexPrettyPrintCommandUpdateSite

   点击OK并Finish

Flex Builder 3代码格式化方法 - 童秋燕 - 童秋燕的IT技术博客

 

6. 看到上图继续NEXT,选中“I accept the terms in the license agreement”后Next并Finish,等待更新结束 

 

Flex Builder 3代码格式化方法 - 童秋燕 - 童秋燕的IT技术博客

 

Flex Builder 3代码格式化方法 - 童秋燕 - 童秋燕的IT技术博客 

  

7. 进入Window--Proferences--FlexFormatter—Auto Format设置如下,那么在你保存的时候,就会自动进行格式化了。

 

Flex Builder 3代码格式化方法 - 童秋燕 - 童秋燕的IT技术博客

 

结束

[责任编辑:jumbot]

[发表评论] [收藏本页]