Eclipse使用技巧

参考:

1. 最常用的15打Eclipse开发快捷键技巧  http://blog.csdn.net/chenleixing/article/details/44600587

2. Eclipse使用心得与技巧  http://blog.csdn.net/diyangxia/article/details/42673851

2017-11-25

1. syso 快捷键不能使用的问题:

  preference > general > keys > content asist:alt + /

  when:editing text

2. 代码背景色设置:

  preference > General > Editors > Text Editors > Background color:R199 G237 B204

3. 为代码添加统一注释

  preference > Java > Code Style > Code Templates > Comments > Types > Edit (日期作者等)

  preference > Java > Code Style > Code Templates > Comments > Files > Edit (版权声明等)

  新建类时勾选 Generate comments

4. 一些快捷键

  - Alt + ↑:向上移动选中的代码

  - Alt + ↓:向下移动选中的代码

  - Ctrl + Alt + ↓:复制当前行到下一行(复制增加)

  - Ctrl + Alt + ↑:复制当前行到上一行(复制增加)

  - Ctrl + 1:快速修复,如果有红线,把光标定位到红线处,就会提示解决方法

  - Ctrl + d:删除当前行

  - Ctrl + o:快速显示outline

2017-11-26

1. 运行当前文件: ctrl + F11

原文地址:https://www.cnblogs.com/wnzhong/p/7895326.html