IDEA-快捷键大全

快捷键大全

1 alt + r 执行run

2 alt + / 提示补全

3 ctrl + / 单行注释

4 ctrl +shift + / 多行注释

5 ctrl + alt + down 向下复制一行

6 ctrl + d 删除一行或者选中行

7 alt + down 向下移动行

8 alt + up 向上移动行

9 ctrl + shift + enter 向上开始新的一行

10 shift + enter 向下开始新的一行

11 ctrl + 鼠标选中 查看源码

12 alt + enter 万能解错/生成返回值

13 alt + left 退回前一个编辑的页面

14 alt + right 进入到下一个编辑的页面(对于上一条来说)

15 F4 查看继承关系

16 ctrl + o 显示本类的结构

17 ctrl + shift + f 格式化代码

18 ctrl + alrt + / 提示方法参数类型

19 ctrl + c 复制

20 ctrl + z 撤销

21 ctrl + y 反撤销

22 ctrl + x 剪切

23 ctrl + v 粘贴

24 ctrl + s 保存

25 ctrl + a 全选

26 tab 选中数行,整体向后移

27 shift + tab 选中数行,整体向前移

28 ctrl + shift + x 打开代码所在硬盘文件夹

29 ctrl + shift + y 大小写互转

30 alt + shift + r 重构:修改变量名和方法名

31 alt + shift + s 生成构造/get/set/toString

32 alt + shift + c 收起所有的方法

33 alt + shift + x 打开所有的方法

34 alt + shift + m 抽取方法

35 alt + shift + z 生成try-catch等(surround with)

36 alt + shift + f 局部变量抽取成员变量

37 ctrl + f 查找/替换(当前)

38 ctrl + h 查找 (全局)

39 double shift 查找文件

40 ctrl + shift + u 查看类的继承结构图

41 ctrl + alt + h 查看方法的多重重写结构

42 ctrl + alt + f 添加到收藏

43 F2 查看文档的说明

44 ctrl + e 打开最近修改的文件

45 ctrl + w 关闭当前打开的代码栏

46 ctrl + shift + w 关闭所有代码栏

47 ctrl + shift + q 快速搜索类中的错误

48 ctrl + shift + v 选择粘贴的内容

49 ctrl + shift + h 查看哪些方法被调用

相关推荐
SimonKing2 小时前
OpenCode AI辅助编程,不一样的编程思路,不写一行代码
java·后端·程序员
FastBean2 小时前
Jackson View Extension Spring Boot Starter
java·后端
Seven973 小时前
剑指offer-79、最⻓不含重复字符的⼦字符串
java
皮皮林55112 小时前
Java性能调优黑科技!1行代码实现毫秒级耗时追踪,效率飙升300%!
java
冰_河13 小时前
QPS从300到3100:我靠一行代码让接口性能暴涨10倍,系统性能原地起飞!!
java·后端·性能优化
桦说编程15 小时前
从 ForkJoinPool 的 Compensate 看并发框架的线程补偿思想
java·后端·源码阅读
躺平大鹅17 小时前
Java面向对象入门(类与对象,新手秒懂)
java
初次攀爬者18 小时前
RocketMQ在Spring Boot上的基础使用
java·spring boot·rocketmq
花花无缺18 小时前
搞懂@Autowired 与@Resuorce
java·spring boot·后端