idea 常用快捷键以及插件

一、常用快捷键

以下部分快捷键只在keymap是eclipse模式下生效

alt + c:git提交;

alt + f:git push;

alt + f9:rebuild project;

alt + p:git pull;

alt + <-(左箭头) :回到上一次光标所在处;

alt + shift + insert:列编辑,可通过鼠标右键,把column selection mode 前面的对勾取消来取消列编辑状态;

alt + shift + r:变量重命名;

alt + shift + z:代码添加try catch、if、while等;

ctrl + +:折叠当前方法代码;

ctrl + -:展开当前方法代码;

ctrl + alt + h :查看方法在哪里被调用;

ctrl + alt + m:打开maven projects窗口(自己设置maven projects);

ctrl + alt + t:代码添加try catch、if、while等;

ctrl + alt + u:查看类的结构图;

ctrl + F1:错误描述;

ctrl + g:查看方法、类在哪里被调用,范围比ctrl + alt + h广;

ctrl + L:跳转到指定行或列;

ctrl + o :类似于shift +7,但这个可以看到类的属性;

ctrl + p : 查看方法的参数信息(需要光标在方法的括号中);

ctrl + r:替换

ctrl + t:查看类的所有子类,找到接口的实现方法;

ctrl + alt + p:查看类的父类;

ctrl + shift + +:展开所有方法代码;

ctrl + shift + -:折叠所有方法代码;

ctrl + shift + a:打开registry;

ctrl + shift + L:设置背景图片;

ctrl + shift + o:自动导包,移除不用的包;

ctrl + shift + p :将插入符号移动到匹配的括号;

ctrl + shift + r:全局搜索文件;

ctrl + shift + T:全局搜索类;

ctrl + shift + y:google翻译插件的翻译快捷键;

ctrl + shift + F12 : 代码编辑窗口最大或最小化;

ctrl + shift + " : 控制台窗口最大或最小化;

ctrl + h:全局查找;

ctrl + w:关闭窗口,需要光标在该窗口上;

ctrl + x:水平分屏(自己设置split horizontally);

ctrl + y :垂直分屏(自己设置split vertically);

shift + 7:打开structure窗口,查看类的方法;

shift + F1:上一个错误代码;

shift + F2:下一个错误代码;

 

 

二、好用的idea插件

1、codota:代码提示插件,代码copy神器

2、easy code:超方便的dao、mapper、service、controller代码生成工具

3、eclipse code formatter:代码格式化工具

4、findbugs-idea:代码bug查找工具

5、lombok plugin:lombok拆件,可以省略get、set

6、rainbow brackets:idea主题插件

7、translation:翻译拆件

8、visualvm launcher:代码性能分析插件

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章