博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Eclipse 快捷键
阅读量:2439 次
发布时间:2019-05-10

本文共 2134 字,大约阅读时间需要 7 分钟。

<script type="text/javascript"> </script>

希望通过介绍Eclipse集成开发环境中的一些基本设置和快捷键, 使开发人员能够快速进入工作状态.


IDE
- 常用的窗口: Package Explore, Outline
- Ctrl+Shift+L: Show all key assists. 显示所有的快捷键.

Project
- 可以通过Project->Properties->Java Build Path->Source->Link Source来关联外部的代码目录.
- 可以Project->Properties->Java Build Path->Source->Browse来修改默认输出目录
Editor
- Ctrl+Space: Show completion (also templates).  显示自动完成.
- Ctrl+E or Ctrl+Shift+E: Switch to an opened Editor. 输入文件名, 切换到一个已经打开的编辑窗口.
- 可以通过Window->Preferences->Java->Code Style来配置代码格式或导入已有格式.
- Ctrl+Shift+F: Format the selected text. 格式化选中的内容.
- Ctrl+Shift+O: Evaluate all required imports and replace the current imports. 重新组织imports.
- Ctrl+1: Suggest possible fixes for a problem. 查看当前问题/错误的可能的解决方法.
- Ctrl+L: Go to line. 跳到某一行.
- Ctrl+/: Toggle comment the selected lines. 注释选中的内容或取消注释.
- Ctrl+D: Delete the current line or selected lines. 删除当前行或者选中的多行内容.
- Ctrl+Up/Down: Scroll up/down the current line or selected lines. 上下移动一行或选中的多行内容.
- Shift+Tab or Alt+Shift+Tab: Ident a region. 对选中区域进行缩进.
Search
- Ctrl+G: Search for declarations of the selected element in the workspace. 在工作区内查找选中元素的所有声明.
- Ctrl+Shift+G: Search for references to the selected element in the workspace. 在工作区内查找选中元素的所有引用.
- Ctrl+H: Open Search Dialog. 打开多文件查找对话框.
- Ctrl+J or Ctrl+Shift+J: Incremental find or reserve find in a file. 增量向下查找或增量向上查找.
- Ctrl+F: 打开单文件查找对话框.
- Ctrl+K or Ctrl+Shift+K: Find next or find previous item. 查找下一个或上一个.
Browing Code
- Ctrl+T: Show the quick hierarchy of the selected element. 查看当前元素(类,函数等)的继承/重载关系.
- Ctrl+Shift+T: Open a type in a Java Editor. 快速打开工作区中的某个类. (支持模糊匹配)
- Ctrl+Shift+R: Open an editor on a particular resource. 快速打开工作去中的一个资源文件(.xml, .txt). (支持模糊匹配)
- Ctrl+O: Show the quick outline for the editor input. 快速跳转到当前文件中的某个成员.
- Hold Ctrl then Click one item: 跳转到一个item的定义.

Debug
- F11: Run Debug
- F5: Step in
- F6: Step over
- F8: Resume

Refactoring
- Alt+Shift+R: Rename
- Alt+Shift+V: Move
- 可以在右键菜单中选择:
    - Generate getters/setters: 自动生成getters/setters
    - Generate constructor with fields: 自动生成constructor
    - Override/implement methods: 重载/实现父类方法
Source Control
- SVN plug-in:

 

转载地址:http://qqbqb.baihongyu.com/

你可能感兴趣的文章
Tomcat Server组成
查看>>
Java 使用Token令牌防止表单重复提交
查看>>
Tomcat 部署war文件
查看>>
桌面文件删除不掉的解决方案
查看>>
MyEclipse10.x 安装 properties editor插件,properties文件显示中文
查看>>
Json学习一(基础概念知识学习)
查看>>
Font "楷体_GB2312" is not available to the JVM. See the Javadoc for more det
查看>>
mysql5.7.11服务无法启动,错误代码3534
查看>>
Mysql5.7.11解压版在windows10上的安装配置
查看>>
mysql5.7.11修改root密码
查看>>
navicate Premium注册码
查看>>
MySQL 执行插入操作时报1366 - Incorrect string value: '\xE4\xB8\xAD\xE6\x96\x87' for column 'name' at row 1
查看>>
jsp文件放在WebRoot下还是WebInfo下
查看>>
java.util.ConcurrentModificationException at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(L
查看>>
java.lang.IllegalStateException: Cannot forward after response has been committed
查看>>
java Swing JTable 隐藏某列
查看>>
Jtextarea与Jtable中下拉框始终显示在最后一行
查看>>
jtable中某列实现html中a标签效果,鼠标移到上面去的时候显示手型效果
查看>>
'@P0'附近有语法错误
查看>>
String、StringBuilder、StringBuffer的区别
查看>>