idea常用快捷键

233 阅读1分钟

编辑类

#光标多点
Shift + ctrl + alt + 鼠标左键 

#光标跳到行尾
end  

#光标跳到行首
home 

#光标跳到新的一行
shift + 回车  

#大小写切换
ctrl + shift + U 

#去掉没有用到的包
ctrl + alt + o

查找类

#当前页查找替换
ctrl + r 

#全局查找替换
ctrl + shift + r 

#查看接口的实现类
ctrl + alt + b  

#查看类的所有方法
ctrl + F12  

#搜索类
ctrl + n 

#查找文件
ctrl + shift + N 

#选择多个相同值
alt + j 

#导入包
alt + 回车 

#上下移动
alt + shift + up/down 

#格式化代码
alt + ctrl + L 

#删除行
ctrl + x 

#复制行
ctrl +d 

#单行注释
ctrl + /  

#多行注释
ctrl + shift + / 

#修改实例化名称
shift + fn + f6 

#调出环绕代码如(surround with) try-catch  
ctrl + atl + t

操作类

itar #生成array for代码块

iter #生成增强for

itli #生成list的遍历

itve #生成Vector数组迭代

itco #生成Collection迭代

iten #生成enumeration遍历

itit #生成iterator迭代

ittok #生成String token遍历