Hi,大家好,我是编程小6,很荣幸遇见你,我把这些年在开发过程中遇到的问题或想法写出来,今天说一说eclipse常用快捷键大全_eclipse快捷键无法使用,希望能够帮助你!!!。

file->Manage IDE Settings->Import Settings
这个是尚硅谷宋红康老师准备的快捷键
链接:https://pan.baidu.com/s/10F2ZiMp4G14e0Co0VuQzPw?pwd=2pom
提取码:2pom
这个是导入包后使用的快捷键
| 操作 | 快捷键 |
|---|---|
| 局部变量变全局变量 | ctrl+alt+f |
| 执行(run) | alt+r |
| 提示补全 (Class Name Completion) | alt+/ |
| 单行注释 | ctrl + / |
| 多行注释 | ctrl + shift + / |
| 向下复制一行 (Duplicate Lines) | ctrl+alt+down |
| 删除一行或选中行 (delete line) | ctrl+d |
| 向下移动行(move statement down) | alt+down |
| 向上移动行(move statement up) | alt+up |
| 向下开始新的一行(start new line) | shift+enter |
| 向上开始新的一行 (Start New Line before current) | alt+shift+u |
| 如何查看源码 (class) | ctrl + 选中指定的结构 或shift + t |
| 万能解错/生成返回值变量 | alt + enter |
| 退回到前一个编辑的页面 (back) | alt + left |
| 进入到下一个编辑的页面(针对于上条) (forward) | alt + right |
| 查看继承关系(type hierarchy) | F4 |
| 格式化代码(reformat code) | alt+f |
| 提示方法参数类型(Parameter Info) | ctrl+alt+/ |
| 复制代码 | ctrl + c |
| 撤销 | ctrl + z |
| 反撤销 | ctrl + y |
| 剪切 | ctrl + x |
| 粘贴 | ctrl + v |
| 保存 | ctrl + s |
| 全选 | ctrl + a |
| 选中数行,整体往后移动 | tab |
| 选中数行,整体往前移动 | shift + tab |
| 查看类的结构:类似于 eclipse 的 outline | ctrl+o |
| 重构:修改变量名与方法名(rename) | alt+shift+r |
| 大写转小写/小写转大写(toggle case) | ctrl+shift+y |
| 生成构造器/get/set/toString | alt +shift + s |
| 查看文档说明(quick documentation) | F2 |
| 收起所有的方法(collapse all) | alt + shift + c |
| 打开所有方法(expand all) | alt+shift+x |
| 打开代码所在硬盘文件夹(show in explorer) | ctrl+shift+x |
| 生成 try-catch 等(surround with) | alt+shift+z |
| 局部变量抽取为成员变量(introduce field) | alt+shift+f |
| 查找/替换(当前) | ctrl+f |
| 查找(全局) | ctrl+h |
| 查找文件 | double Shift |
| 查看类的继承结构图(Show UML Diagram) | ctrl + shift + u |
| 查看方法的多层重写结构(method hierarchy) | ctrl+alt+h |
| 添加到收藏(add to favorites) | ctrl+alt+f |
| 抽取方法(Extract Method) | alt+shift+m |
| 打开最近修改的文件(Recently Files) | ctrl+E |
| 关闭当前打开的代码栏(close) | ctrl + w |
| 关闭打开的所有代码栏(close all) | ctrl + shift + w |
| 快速搜索类中的错误(next highlighted error) | ctrl + shift + q |
| 选择要粘贴的内容(Show in Explorer) | ctrl+shift+v |
| 查找方法在哪里被调用(Call Hierarchy) | ctrl+shift+h |
新增的快捷键
| 操作 | 快捷键 |
|---|---|
| 显示参数提示 | ctrl+p |
显示参数提示
需要给eclipse的快捷键模板也设置一下
在搜索框输入parameter info
右击添加快捷键
然后确定时候如果提示有其他功能已经占用 就把那个 remove掉就可以了。
格式化代码(reformat code)、向上开始新的一行 (Start New Line before current)这几个操作是我手动自己改过的