Eclipse 常用技巧及常见问题解决

Eclipse默许函数折叠打开

之前更新了eclipse的一些插件之后,每次打开代码eclipse 默认把代码里面的函数代码和注释,import 内容都给折叠了,虽然看起来精简了,但是有些不方便,要一个个点开.
于是查了一下关于折叠的方法的配置.
window->perference->java->editor->folding
然后想默认打开什么,折叠什么都就自己去设置了.我这里就是把函数不折叠,其他都折叠.
如果还不行的话,就看一下window->perference->general->editor->structred-text

Eclipse插件:

Eclipse color theme

win7屏蔽ctrl+alt+up/down快捷键/ (eclipse冲突)

相关博客

去掉 eclipse 中自动生成的注释 //TODO

在 菜单栏中 Window --> Preferences -->Java -->Code Style -->Code Templates–> Code --> Method body按照上面的路径来找,选中Method body后edit 去掉那句默认的话就行了.

常见错误

  1. Access restriction: The type 'BASE64Encoder' is not API (restriction on required library 'C:\Program Files\Java\jdk1.8.0_25\jre\lib\rt.jar')
    解决办法:修改编译选项,步骤如下:Window -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and restricted API -> Forbidden reference (access rules) -> Warnings或者Ignore即可。
    相关博客

Eclipse 关闭拼写检查

eclipse Version: Oxygen.2 Release (4.7.2)

这里写图片描述

猜你喜欢

转载自blog.csdn.net/baidu_33314976/article/details/83178176