-
設(shè)置快捷鍵(Keymap)
設(shè)置快捷鍵
1详囤、設(shè)置快捷為 Eclipse 的快捷鍵
2镐作、通過(guò)快捷鍵功能修改快捷鍵設(shè)置
通過(guò)快捷鍵功能修改快捷鍵設(shè)置
3滑肉、常用快捷鍵(重點(diǎn)中的重點(diǎn))--自己設(shè)置的
1 執(zhí)行(run) alt+r
2 提示補(bǔ)全 (Class Name Completion) alt+/
3 單行注釋 ctrl + /
4 多行注釋 ctrl + shift + /
5 向下復(fù)制一行 (Duplicate Lines) ctrl+alt+down
6 刪除一行或選中行 (delete line) ctrl+d
7 向下移動(dòng)行(move statement down) alt+down
8 向上移動(dòng)行(move statement up) alt+up
9 向下開(kāi)始新的一行(start new line) shift+enter
10 向上開(kāi)始新的一行 (Start New Line before current) ctrl+shift+enter
11 如何查看源碼 (class) ctrl + 選中指定的結(jié)構(gòu) 或ctrl + shift + t
12 萬(wàn)能解錯(cuò)/生成返回值變量 alt + enter
13 退回到前一個(gè)編輯的頁(yè)面 (back) alt + left
14 進(jìn)入到下一個(gè)編輯的頁(yè)面(針對(duì)于上條) (forward) alt + right
15 查看繼承關(guān)系(type hierarchy) F4
16 格式化代碼(reformat code) ctrl+alt+L
17 提示方法參數(shù)類(lèi)型(Parameter Info) ctrl+alt+/
18 復(fù)制代碼 ctrl + c
19 撤銷(xiāo) ctrl + z
20 反撤銷(xiāo) ctrl + y
21 剪切 ctrl + x
22 粘貼 ctrl + v
23 保存 ctrl + s
24 全選 ctrl + a
25 選中數(shù)行,整體往后移動(dòng) tab
26 選中數(shù)行问畅,整體往前移動(dòng) shift + tab
27 查看類(lèi)的結(jié)構(gòu):類(lèi)似于 eclipse 的 outline ctrl+o
28 重構(gòu):修改變量名與方法名(rename) alt+shift+r
29 大寫(xiě)轉(zhuǎn)小寫(xiě)/小寫(xiě)轉(zhuǎn)大寫(xiě)(toggle case) ctrl+shift+y
30 生成構(gòu)造器/get/set/toString alt +shift + s
31 查看文檔說(shuō)明(quick documentation) F2
32 收起所有的方法(collapse all) alt + shift + c
33 打開(kāi)所有方法(expand all) alt+shift+x
34 打開(kāi)代碼所在硬盤(pán)文件夾(show in explorer) ctrl+shift+x
35 生成 try-catch 等(surround with) alt+shift+z
36 局部變量抽取為成員變量(introduce field) alt+shift+f
37 查找/替換(當(dāng)前)ctrl+f
38 查找(全局)ctrl+h
39 查找文件 double Shift
40 查看類(lèi)的繼承結(jié)構(gòu)圖(Show UML Diagram) ctrl + shift + u
41 查看方法的多層重寫(xiě)結(jié)構(gòu)(method hierarchy) ctrl+alt+h
42 添加到收藏(add to favorites) ctrl+alt+f
43 抽取方法(Extract Method) alt+shift+m
44 打開(kāi)最近修改的文件(Recently Files) ctrl+E
45 關(guān)閉當(dāng)前打開(kāi)的代碼欄(close) ctrl + w
46 關(guān)閉打開(kāi)的所有代碼欄(close all) ctrl + shift + w
47 快速搜索類(lèi)中的錯(cuò)誤(next highlighted error) ctrl + shift + q
48 選擇要粘貼的內(nèi)容(Show in Explorer) ctrl+shift+v
49 查找方法在哪里被調(diào)用(Call Hierarchy) ctrl+shift+h