[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”。以后,默认打开方式为配置文件编辑器。
(完结)
前些天在家里电脑上重装了一个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”。以后,默认打开方式为配置文件编辑器。
(完结)