(1). 打開Eclipse,選擇打開" Window - PReferences"。
(2). 在目錄樹上選擇"Java-Editor-Content Assist",在右側(cè)的"Auto-Activation"找到"Auto Activation triggers for java"選項(xiàng)。默認(rèn)觸發(fā)代碼提示的就是"."這個(gè)符號(hào)。
(3). 在"Auto Activation triggers for java"選項(xiàng)中,將"."更改:.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
(1). 打開Eclipse,選擇打開" Window - Preferences"。
(2). 在目錄樹上選擇"XML-Editor-Content Assist",在右側(cè)的"Auto-Activation"找到"Prompt when these characters are inserted "選項(xiàng)。
(3). 在"Prompt when these characters are inserted"選項(xiàng)中,將"<=: ,"更改:<=:.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW(,
(1)Ctrl+Space
說(shuō)明:內(nèi)容助理。提供對(duì)方法,變量,參數(shù),javadoc等得提示,應(yīng)運(yùn)在多種場(chǎng)合,總之需要提示的時(shí)候可先按此快捷鍵。注:避免輸入法的切換設(shè)置與此設(shè)置沖突
(2)Ctrl+Shift+Space
說(shuō)明:變量提示
(3)Ctrl+/
說(shuō)明:添加/消除//注釋,在eclipse2.0中,消除注釋為Ctrl+/
(4)Ctrl+Shift+/
說(shuō)明:添加/* */注釋
(5)Ctrl+Shift+/
說(shuō)明:消除/* */注釋
(6)Ctrl+Shift+F
說(shuō)明:自動(dòng)格式化代碼
(7)Ctrl+1
說(shuō)明:批量修改源代碼中的變量名,此外還可用在catch塊上.
(8)Ctril+F6
說(shuō)明:界面切換
(9)Ctril+Shift+M
說(shuō)明:查找所需要得包
(10)Ctril+Shift+O
說(shuō)明:自動(dòng)引入所需要得包
(11)Ctrl+Alt+S
說(shuō)明:源代碼得快捷菜單。其中的Generate getters and setters 和 Surround with try/catchblock比較常用.建議把它們添加為快捷鍵.快捷鍵設(shè)置在windows->preferences->Workbench->Keys
單步返回 F7
單步跳過(guò) F6
單步跳入 F5
單步跳入選擇 Ctrl+F5
調(diào)試上次啟動(dòng) F11
繼續(xù) F8
使用過(guò)濾器單步執(zhí)行 Shift+F5
添加/去除斷點(diǎn) Ctrl+Shift+B
顯示 Ctrl+D
運(yùn)行上次啟動(dòng) Ctrl+F11
運(yùn)行至行 Ctrl+R
Ctrl+U重構(gòu)作用域 功能 快捷鍵
撤銷重構(gòu) Alt+Shift+Z
抽取方法 Alt+Shift+M
抽取局部變量 Alt+Shift+L
內(nèi)聯(lián) Alt+Shift+I
移動(dòng) Alt+Shift+V
重命名 Alt+Shift+R
重做 Alt+Shift+Y
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注