eclipse常用设置

[b]引言:[/b]

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

[b]提纲:[/b]

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

[b]正文:[/b]

[color=darkblue]一、换table为空格[/color]

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

[color=darkblue]二、显示80列提示线[/color]

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

[color=darkblue]三、显示行号[/color]

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

[color=darkblue]四、去掉文档注释自动格式化[/color]

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

[color=darkblue]五、修改完成提示快捷键[/color]

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

[color=darkblue]六、显示Help菜单的安装新软件[/color]

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

[color=darkblue]七、添加扩展名对应的打开方式[/color]

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

(完结)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值