intellij idea -常用快捷方式

個人之前一直用eclipse做c++、java開發,換到新公司,大家都用IDEA開發工具,所以最近也在學習,總結下快捷方式,如下:
1、文本編輯
        刪除    ctr + y
        複製    ctr + D
2、智能提示
       提示    ctr + space
       智能提示 ctr + shift + space
       完成當前語句  ctr + shift + enter
       建議提示爲參數  ctr + alt + P
       對代碼重新排列格式 Ctrl + Alt + L
       對imports進行優化  Ctrl + Alt + O

3、位置定位

     定位到下一個或上一個錯誤 F2 / Shift + F2

     定位文件頭   ctr+G    (定位到文件行數)
     定位文件尾   ctr+G    
       定位到代碼塊開始  ctr + [
       定位到代碼塊結束  ctr + ]
       回到最近的窗口      F12
         回到之前的文件  alt + left
        回到之後的文件   alt + right
       定位到最後編輯位置  Ctrl + Shift + Backspace
      從tool window或其他window切換到文件編輯    esc
     關閉最近打開的窗口    shift + esc

4、類、方法、文件定位

      查找類    ctr + N
        查找文件  Ctrl + Shift + N
          符號定位     Ctrl + Alt + Shift + N
       查看文件結構   ctrl + F12
       最近打開的文件  ctr + E
       定位下一個方法 alt + down
       定位上一個方法  alt + up
      查看方法參數信息  ctr + p
     查看方法、類的doc ctr + Q

5、類、方法的結構查看、定位

      跳到類或方法的聲明         ctr + B
       定位到類的父類、接口     ctr + U
       查看類的繼承結構             ctr + H
      查看方法的繼承結構          ctr + shift + H
      查看類或方法被調用情況  ctr + alt +H 
      原地參看類、方法的聲明 Ctrl + Shift + I

6、運行與調試

Compile and Run
Ctrl + F9 Make project (compile modifed and dependent)
Ctrl + Shift + F9 Compile selected file, package or module
Alt + Shift + F10 Select configuration and run
Alt + Shift + F9 Select configuration and debug
Shift + F10 Run
Shift + F9 Debug
Ctrl + Shift + F10 Run context configuration from editor
Debugging
F8 Step over
F7 Step into
Shift + F7 Smart step into
Shift + F8 Step out
Alt + F9 Run to cursor
Alt + F8 Evaluate expression
F9 Resume program
Ctrl + F8 Toggle breakpoint
Ctrl + Shift + F8 View breakpoints
      

       

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