IDEA 常用快捷鍵
1,執行(run) alt+r
2,提示補全 (Class Name Completion) alt+/
3,單選注釋 ctrl + /
4,多行注釋 ctrl + shift + /
5,向下復制一行 (Duplicate Lines) ctrl+alt+down
6,洗掉一行或選中行 (delete line) ctrl+d
7,向下移動行(move statement down) alt+down
8,向上移動行(move statement up) alt+up
9,向下開始新的一行(start new line) shift+enter
10,向上開始新的一行 (Start New Line before current) ctrl+shift+enter
11,如何查看原始碼 (class) ctrl + 選中指定的結構 或 ctrl + shift + t
12,萬能解錯/生成回傳值變數 alt + enter
13,退回到前一個編輯的頁面 (back) alt + left
14,進入到下一個編輯的頁面(針對于上面那條來說的) (forward) alt + right
15,查看類繼承關系(type hierarchy) F4
16,格式化代碼(reformat code) ctrl+shift+F
17,提示方法引數型別(Parameter Info) ctrl+alt+/
18,復制代碼 ctrl + c
19,撤銷 ctrl + z
20,反撤銷 ctrl + y
21,剪切 ctrl + x
22,粘貼 ctrl + v
23,保存 ctrl + s
24,全選 ctrl + a
25,選中數行,整體往后移動 tab
26,選中數行,整體往前移動 shift + tab
27,查看類的結構:類似于 eclipse 的 outline ctrl+o
28,修改變數名與方法名(rename) alt+shift+r
29,大寫轉小寫/小寫轉大寫(toggle case) ctrl+shift+y
30,生成構造/get/set/toString alt +shift + s
31,查看檔案說明(quick documentation) F2
32,收起所有的方法(collapse all) alt + shift + c
33,打開所有方法(expand all) alt+shift+x
34,打開代碼所在硬碟檔案夾(show in explorer) ctrl+shift+x
35,生成 try-catch 等(surround with) alt+shift+z
36,區域變數抽取為成員變數(introduce field) alt+shift+F
37,查找/替換(當前) ctrl+f
38,查找(全域) ctrl+h
39,查找檔案 double Shift
40,抽取方法(Extract Method) alt+shift+m
41,全屏顯示代碼(close active tab) ctrl + m
42,打開 Module setting 視窗(Recently Changed Files) ctrl+E
43,關閉當前打開的代碼欄(close) ctrl + w
44,關閉打開的所有代碼欄(close all) ctrl + shift + w
45,快速搜索類中的錯誤(next highlighted error) ctrl + shift + Q
46,選擇要粘貼的內容(Show in Explorer) ctrl+shift+V
47,查找方法在哪里被呼叫(Call Hierarchy) ctrl+shift+H
48,查看方法的多層重寫結構(method hierarchy) ctrl+alt+h
基本上包含了開發程序中能用上的所有快捷鍵吧,
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/298928.html
標籤:其他
