eclipse-- IDEA學習

1.刪除模塊 先右鍵 openmodelsetting 去掉對應的模塊,然後在到模塊下delete

2.設置常用快捷鍵:

在idea中引入keymap.jar

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 IntelliJ IDEA 的安裝、配置與使用
 
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

 

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