IDEA

Alt⌥   commond⌘   shift⇧

 

使用“option + command + l”进行全局格式化,

使用“control + option + o”去除无用的import。

使用“option + command + m”进行重构(想重构一个代码块,将其选中后重构)。

使用“option + command + v”抽取内部变量,

使用“option + command + c”抽取常量。

 

ctrl + enter:get set tostring 快捷键

Alt + enter: 自动导包

commond + B:查看在哪被使用

command+alt+左键/右键 将光标返回到上次查看代码的地方

commond + / 注释/取消行注释
commond + Alt + / 注释/取消块注释

command-D :复制当前行到下一行

 

command - 7 :查看类的所有方法

command+alt+U 在当前类中,查看继承关系视图

command+F12 查找当前类的方法
double shift (快速按两次shift键)快速查找

fn+左键 光标移到当前行最左侧(最右侧同理 )

posted @ 2022-04-11 00:14  zhegeMaw  阅读(16)  评论(0)    收藏  举报