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 查看類的繼承結構圖(Show UML Diagram) ctrl + shift + u
41 查看方法的多層重寫結構(method hierarchy) ctrl+alt+h
42 添加到收藏(add to favorites) ctrl+alt+f
43 抽取方法(Extract Method) alt+shift+m
44 打開最近修改的文件(Recently Files) ctrl+E
45 關閉當前打開的代碼欄(close) ctrl + w
46 關閉打開的所有代碼欄(close all) ctrl + shift + w
47 快速搜索類中的錯誤(next highlighted error) ctrl + shift + q
48 選擇要粘貼的內容(Show in Explorer) ctrl+shift+v
49 查找方法在哪裏被調用(Call Hierarchy) ctrl+shift+h
50 列出該類中所有的方法列表 ctrl+F12

常用插件推薦

Key promoter 快捷鍵提示 https://plugins.jetbrains.com/plugin/4455?pr=idea
CamelCase 駝峯式命名和下劃線命名 交替變化 https://plugins.jetbrains.com/plugin/7160?pr=idea
CheckStyle-IDEA 代碼樣式檢查 https://plugins.jetbrains.com/plugin/1065?pr=idea
FindBugs-IDEA 代碼 Bug 檢查 https://plugins.jetbrains.com/plugin/3847?pr=idea
Statistic 代碼統計 https://plugins.jetbrains.com/plugin/4509?pr=idea
JRebel Plugin 熱部署 https://plugins.jetbrains.com/plugin/?id=4441
CodeGlance 在編輯代碼最右側,顯示一 塊代碼小地圖 https://plugins.jetbrains.com/plugin/7275?pr=idea
Eclipse Code Formatter 使用 Eclipse 的代碼格式 化風格,在一個團隊中如果 公司有規定格式化風格,這 個可以使用。 https://plugins.jetbrains.com/plugin/6546?pr=idea
GsonFormat 把 JSON 字符串直接實例 化成類 https://plugins.jetbrains.com/plugin/7654?pr=idea
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章