IDEA中快捷鍵大全

2021-09-25 01:16:14 字數 2645 閱讀 8965

部落格原文 ---->

快捷鍵大全

1 alt + r執行run

2 alt + /提示補全

3 ctrl + /單行注釋

4 ctrl +shift + /多行注釋

5 ctrl + alt + down  向下複製一行

6 ctrl + d      刪除一行或者選中行

7 alt + down    向下移動行

8 alt + up     向上移動行

9  ctrl + shift + enter 向上開始新的一行

10 shift + enter   向下開始新的一行

11 ctrl + 滑鼠選中     檢視原始碼

12 alt + enter    萬能解錯/生成返回值

13 alt + left     退回前乙個編輯的頁面

15 f4 檢視繼承關係

16 ctrl + o 顯示本類的結構

17 ctrl + shift + f  格式化**

18 ctrl + alrt + /   提示方法引數型別

19 ctrl + c        複製

20 ctrl + z        撤銷

21 ctrl + y        反撤銷

22 ctrl + x        剪下

23 ctrl + v        貼上

24 ctrl + s        儲存

25 ctrl + a        全選

26 tab              選中數行,整體向後移

27 shift + tab   選中數行,整體向前移

28ctrl + shift + x   開啟**所在硬碟資料夾

29 ctrl + shift + y 大小寫互轉

30alt + shift + r  重構:修改變數名和方法名

31alt + shift + s  生成構造/get/set/tostring

32 alt + shift + c    收起所有的方法

33 alt + shift + x    開啟所有的方法

34alt + shift + m   抽取方法

35 alt + shift + z    生成try-catch等(surround with)

36 alt + shift + f     區域性變數抽取成員變數

37 ctrl + f               查詢/替換(當前)

38 ctrl + h              查詢    (全域性)

39 double shift      查詢檔案

40 ctrl + shift + u   檢視類的繼承結構圖

41 ctrl + alt + h      檢視方法的多重重寫結構

42 ctrl + alt + f       新增到收藏

43f2             檢視文件的說明

44 ctrl + e              開啟最近修改的檔案

45 ctrl + w             關閉當前開啟的**欄

46 ctrl + shift + w  關閉所有**欄

47 ctrl + shift + q    快速搜尋類中的錯誤

48 ctrl + shift + v    選擇貼上的內容

49 ctrl + shift + h    檢視哪些方法被呼叫

IDEA快捷鍵大全

ctrl f2,停止 alt shift f9,選擇 debug alt shift f10,選擇 run ctrl shift f9,編譯 ctrl shift f10,執行 ctrl shift f8,檢視斷點 f8,步過 f7,步入 shift f7,智慧型步入 shift f8,步出 alt...

IDEA快捷鍵大全

自動 常用的有fori sout psvm tab即可生成迴圈 system.out main方法等boilerplate樣板 例如要輸入for user user users 只需輸入user.for tab 再比如,要輸入date birthday user.getbirthday 只需輸入us...

idea快捷鍵大全

ctrl z 撤銷 ctrl shift z 重做 ctrl x 剪貼 ctrl c 複製 ctrl v 貼上 ctrl y 刪除當前行 ctrl d 複製當前行 ctrl shift j 將選中的行合併成一行 ctrl n 查詢類檔案 ctrl shift n 查詢檔案 ctrl g 定位到檔案某...