1、coding时无法快捷显示出类对应的方法
windows--> preferences --> java-->editor --> content assist--> advanced
选择上面一排“select theproposal kinds contained in the 'default' content assist list”下面的一个Java Prolosals 复选框,打上勾,再保存退出即可。
2、补全方法返回值快捷键设置
windows--> preferences-->java-->general-->keys
搜索quick Assist - Assign to local variable Enditing java Source,然后设置其快捷方式
3、背景颜色设置
windows->Preferences->General->Editor->Text Editors
右边选择Appearance color options ,选Background color ,护眼豆沙绿:R204,G232,U207
4、代码自动提示
Window -> Perferences -> Java -> Editor -> Content Assist
在右边最下面一栏找到 auto-Activation ,下面有三个选项,找到第二个“Auto activation triggers for Java:”选项,在其后的文本框中输入“abcdefghijklmnopqrstuvwxyz.”
5、代码保存自动格式化,自动处理依赖引入
Window -> Perferences -> Java -> Editor -> Save Actions
选中Perform the selected actions on save,保存时执行所选操作
然后选中Organize Imports,自动处理依赖引入,去除无效引入
选中Format source code,格式化代码。Format all lines,格式化所有行;Formate edited lines,格式化修改的行
选中Additional actions,额外的操作,可以配置,比如添加缺失的注解等