`
zhaoningbo
  • 浏览: 609548 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
阅读更多
引言:

  前些天在家里电脑上重装了一个eclipse,代码一格式化发现全乱,果断重配了一下。虽然网上已有大量流传,但不够系统。因此再整理一下,利人利自。

提纲:

  一、换table为空格
  二、显示80列提示线
  三、显示行号
  四、去掉文档注释自动格式化
  五、修改快捷键
  六、显示Help菜单的安装新软件
  七、添加扩展名对应的打开方式

正文:

  一、换table为空格

    Window| Preferences| Java| Code Style| Formatter,点“New ...”,起名“non-tablespace”,点“Edit..”,选标签“Indentation”,在“General settings| Tab policy”后下拉框选“Space only”

  二、显示80列提示线

    Window| Preferences| General| Editors| Text Editors|,勾选“Show print margin”,在“Print margin column”填写“80”

  三、显示行号

    Window| Preferences| General| Editors| Text Editors|,勾选“Show line numbers”

  四、去掉文档注释自动格式化

    Window| Preferences| Java| Code Style| Formatter,点“New ...”,起名“non-tablespace”,点“Edit..”,选标签“Comments”,在“General settings”,去勾“Enable Javadoc comment formatting”

  五、修改完成提示快捷键

    Window| Preferences| General| Keys|,找到“Content Assist”,选中,点击“Unbind Command”移动光标到“Binding”,按[Alt+E]组合键。即可将快捷建改为Alt+E

  六、显示Help菜单的安装新软件

    Window| Preferences| General| Capabilities|,勾选“Classic Update”

  七、添加扩展名对应的打开方式

    Window| Preferences| General| Editors|,选中“File Associations”,点上面“Add...”,弹出框内填入“*.config”,点下面“Add...”,选择“Properties File Editor”。以后,默认打开方式为配置文件编辑器。

  (完结)

2
0
分享到:
评论
1 楼 zhaoningbo 2012-04-27  
补充:

  八、设置指定后缀文件读写编码为UTF-8

   Window| Preferences| General| Content Types,在右上列表树上选择对应文件,然后在右下“Default Encoding”输入“UTF-8”,即可。

相关推荐

Global site tag (gtag.js) - Google Analytics