天天看點

Eclipse快捷鍵彙總

Collapse (程式碼折疊) : Ctrl+鍵盤右方數字區的'-'

Expand (程式碼展開) : Ctrl+鍵盤右方數字區的'+'

Expand All (程式碼全部展開) : Ctrl+鍵盤右方數字區的'*'

Find and Replace (尋找並取代文字) : Ctrl+F

Quick Fix (快速套件修正) : Ctrl+1

Restore Last Selection (恢復最後選取) : Alt+Shift+方向鍵'↓'

Select Enclosing Element : (選取含括的元素) Alt+Shift+方向鍵'↑'

Select Next Element (選取下一個元素) : Alt+Shift+方向鍵'→'

Select Previous Element (選取上一個元素) : Alt+Shift+方向鍵'←'

Toggle Folding (程式碼折疊、展開功能 開啟/關閉) : Ctrl+鍵盤右方數字區的'/'

Toggle Insert Model (Smart Insert模式 開啟/關閉) : Ctrl+Shift+Insert <

Show Tooltip Description (在遊標位置顯示元素的工具提示說明) : F2

Close (關閉檔案) : Ctrl+W 或 Ctrl+F4

Close All (關閉全部檔案) : Ctrl+Shift+W 或 Ctrl+Shift+F4

Exit (關閉螢幕最上層視窗) : Alt+F4

New menu (顯示File->New選單) : ALT+Shift+N

Rename (重新命名) : F2

Refresh (重新整理) : F5

Go to Line (移至某一行文字) : Ctrl+L

Go to Matching Bracket (將遊標移至對稱的方括弧) : Ctrl+Shift+P

Go to Next Member (移至下一個Member) : Ctrl+Shift+方向鍵'↓'

Last Edit Loaction (移至前次編輯位置) : Ctrl+Q

Open Declaration (瀏覽所選取的Java元素) (註:效果等於Ctrl+滑鼠左鍵點選。)

Open Resource (開啟資源選取對話方塊) : Ctrl+Shift+R

Open Call Hierarchy (開啟Call Hierarchy視窗) : Ctrl+Alt+H

Move Lines Down (將該行文字往下移動) : Alt+方向鍵'↓'

Move Lines Up (將該行文字往上移動) : Alt+方向鍵'↑'

Toggle Comment (加上單行註解/取消單行註解) : Ctrl+/ 或 Ctrl+7 或 Ctrl+Shift+C

Remove Block Comment (移除多行註解) : Ctrl+Shift+/

Organize Imports (組織匯入) : Ctrl+Shift+O

Delete Line (刪除單行文字) : Ctrl+D

Copy Lines (將選取的文字,複製成新行) : Ctrl+Alt+方向鍵'↓'

Delete Next Word (刪除下一個字組) : Ctrl+Delete

Delete Previous Word (刪除前一個字組) : Ctrl+Backspace

Insert Line Above Current Line (在遊標處的該行上方插入新行) : Ctrl+Shift+Enter

Insert Line Below Current Line (在遊標處的該行下方插入新行) : Shift+Enter

To Lower Case (將選取的英文字轉為小寫) : Ctrl+Shift+Y

To Upper Case (將選取的英文字轉為大寫) : Ctrl+Shift+X

Maximize Active View or Editor (編輯區最大化) : Ctrl+M

Next Perspective (切換至下一個視景) : Ctrl+F8

Previous Perspective (切換至上一個視景) : Ctrl+Shift+F8 

繼續閱讀