Myeclipse软件设置

配置文件百度云链接:点击打开链接

  1. 编译环境与运行环境版本问题(运行环境可高于编译环境但最好保持一致)
    o 编译环境:windows-preference-java-compiler
    o 运行环境:windows-preference-java-installed JREs
    由于在MyEclipse中已经自带了jre编译环境,但由于版本太低,所以有时候需要将编译环境配置为系统的jre版本。

    配置方法:https://jingyan.baidu.com/article/dca1fa6facbd1cf1a44052b9.html

  2. 去掉自动注释代码: window-preference-java-code style-code templates
    o 删除方法注释:code-Method body点击Edit删除“// ${todo} Auto-generated method stub”
    o 删除构造方法注释:code-constructor body点击Edit删除“// ${todo} Auto-generated constructor stub”
    o 删除catch块注释:code-catch block body点击Edit删除“// ${todo} Auto-generated catch block”

  3. 行号的显示与隐藏: 代码左侧行号栏空白区域,右键 -> show Line numbers即可
  4. 字体大小及颜色:
    o 代码区域字体大小及颜色:window -> Preferences -> General -> Appearance -> Colors And Fonts -> Java修改 -> Java Edit Text Font
    o 控制台:window -> Preferences -> General -> Appearance -> Colors And Fonts -> Debug -> Console font
    o 其他文件:window -> Preferences -> General -> Appearance -> Colors And Fonts -> Basi -> Text Font
  5. 窗体弄乱怎么办?
    o 重置:Window -> reset perspective(此方法适用于多种视图环境,如代码编写环境、代码调试环境等)
    o 添加需要的视窗:Window -> show view -> 选择需要的视窗
    o 保存当前视图效果:Window -> save perspective as
  6. *取消悬浮提示: window -> Preferences -> Java-Editor -> Hovers。右边将Combined Hover勾去掉,这样代码的悬浮框就不会自动出现了。如果想看提示,将光标悬浮在代码上,按F2即可。
  7. 开启自动提示功能: window -> Preferences -> Java -> Editor -> Content Assist最下面有一个Auto-Activation,只需设置中间的那个就行了,其他默认。在里面输入逗号和a-z26个小写字母和其他需要提示的符号:abcdefghijklmnopqrstuvwxyz.< 确认即可。
  8. 中文代码提示: 首先要有中文版的api 并且必须是html格式(不能为chm格式),百度下载就行,“html_zh_CN.zip”。设置:进入windows -> preferences -> java -> installed jres目录选中你的安装jres单击edit ,再选中所有的jar,单击javadoc location 将路径指向你api 所在的位置即可。
  9. 选中变量时,高亮显示相同变量名: windows -> preferences -> java -> Editor -> Mark Occurences下的Local variables是变量的高亮显示以指定颜色高亮显示:Window -> Preferences -> General -> Editors -> TextEditors -> Annotations -> Occurrences
  10. 关闭拼写检查: Window -> Preferences -> General -> Editors -> TextEditors -> Spelling,将Enable spell checking的前的√打掉即可。
  11. 编译紊乱: 设置eclipse在编译运行项目之前自动保存修改的文件设置eclipse在编译运行项目之前自动保存修改的文件,修改下面两个地方:
    o Window -> Preferences -> General -> Workspace -> “Save automatically before build”
    o Window ->Preferences -> Run/Debug -> Launching -> “Save required dirty editors before launching”
  12. 代码注释样式: Window -> Preferences -> java -> Editor -> Syntax Coloring

猜你喜欢

转载自blog.csdn.net/weixin_42068560/article/details/80201942