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:代碼性能分析插件

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