一、程序的编译环境和运行环境配置
1. 编译环境:Window -- Preferences – Java - Compiler
2. 运行环境:Window -- Preferences – Java - Installed JREs
二、如何显示行号与隐藏行号
1. 显示:在代码区域的左边空白区域,右键 -- Show Line Numbers
2. 隐藏:将上面的操作再做一遍
三、如何更改字体大小与颜色
1. 修改java代码的字体大小与颜色
Window -- Preferences -- General -- Appearance -- Colors and Fonts -- Java -- Java Editor Text Font选中后,点击Edit,进行修改
2. 修改其他字体大小与颜色
Window -- Preferences -- General -- Appearance -- Colors and Fonts -- Bacic -- Text Font 选中后 点击Edit ,进行修改
四、显示的窗口乱了,还原默认显示模式
Window – Perspective -- Reset Prespective
五、如何去掉默认注释
1. Window -- Preferences -- Java -- Code Style -- Code Templates -- Comments – Methods,点击Edit ,将注释部分删除 (不建议删除)
2. Window -- Preferences -- Java -- Code Style -- Code Templates -- Code -- Method body,点击Edit ,将注释部分删除
六、切换工作空间
File – Switch Workspace – 指定工作空间 – ok