ctrl + e 找到最近浏览的文件
ctrl + shift + e找到最近修改过得文件
ctrl + n 搜索到指定的class类
ctrl + n + n 搜索到包含jar包中的类
ctrl + alt + v 抽取变量
//抽取前
System.out.println("sun");
System.out.println("sun");
System.out.println("sun");
//抽取后
String sun = "sun";
System.out.println(sun);
System.out.println(sun);
System.out.println(sun);
ctrl + alt + c //抽取成静态变量
ctrl + alt + f //抽取成员变量
---调试---
(1)添加断点,ctrl + f8
(2)debug 启动程序,shift + f9
(3)f8 单步运行
---项目---
ctrl + alt + shift + u 查看类的结构
alt + f7 找到函数或者变量、类的所有引用的地方
shift + f6 重命名类、方法、变量等,重命名可以选择替换掉注释内的内容
alt + insert 自动生成getter setter方法
alt + enter 简化代码,提取变量,添加异常等等...
Idea 实用技巧
最新推荐文章于 2023-08-04 11:14:23 发布