Eclipse几个常用设置

来源:互联网 发布:ios上python编辑器推荐 编辑:程序博客网 时间:2024/05/16 14:29

更改Eclipse的字体

更改默认字体

Window->Preferences->General->Appearance->Colorsand Fonts ->Basics->Text Font

更改编辑器字体

Window->Preferences->General->Appearance->Colorsand Fonts->Java->Java Editor Text Font(不更改则使用默认字体)

更改控制台字体

Window->Preferences->General->Appearance->Colorsand Fonts->Debug->Console Font(不更改则使用默认字体)

 

自定义快捷键

Window->Preferences->General->Keys

选中要指定快捷键的项目,在Binding里输入快捷键

 

更改拼写检查设置(类似于word的拼写检查)

Window->Preferences->General->Editors->Text Editors->Spelling

可选择是否Enable spell checking

 

自定义代码模板

Window->Preferences->Java->Editor->Templates

选择New按钮添加新的代码模板

 

自定义格式化参考模板

Window->Preferences->Java->CodeStyle->Formatter

Eclipse自带了3个模板文件,这些都是不可更改的,我们可以点New按钮,新建一个模板文件,这样就可以更改了。

 

Eclipse自动生成一些方法(例如成员变量的getset方法)

在编辑器面板点右键 选择Source菜单项,以Generate 开头的菜单项就是系统自动生成代码的选项,例如Generate Getters and Setters…就是自动生成成员变量的getset方法

0 0
原创粉丝点击