eclipse快捷鍵
==================================================
menus
f10 main menu
shift f10 context menu
ctrl f10 view menu
alt - active view's menu
workspace navigation
f12 activate editor
ctrl shift w switch editor
ctrl f6 next editor
ctrl shift f6 prev editor
ctrl f7 next workspace
ctrl shift f7 prev workspace
ctrl f8 next perspective
ctrl shift f8 prev perspective
alt left back
alt right forward
files
alt shift s show in…
ctrl shift r jump to file
ctrl n new file
ctrl s save file
ctrl shift s save all files
ctrl f4 close file
ctrl shift f4 close all files
find
ctrl l goto line
ctrl f find
ctrl j incremental find
ctrl shift j incremental find prev
ctrl k find next
ctrl shift k find prev
ctrl h search workspace
ctrl (dot) navigate next
ctrl (comma) navigate prev
java navigation
f3 goto declaration
ctrl shift u find references in file
ctrl shift g find references in workspace
ctrl t popup type hierarchy
ctrl shift t open type
ctrl o outline of current source
ctrl f3 outline of current cursor position
f2 show javadoc
f4 show heirachy
general editing
alt arrow move line(s) up or down
ctrl alt arrow duplicate line(s) up or down
shift enter insert line below
ctrl shift enter insert line above
ctrl shift q toggle quick diff
ctrl shift y convert to lowercase
ctrl shift x convert to uppercase
java editing
ctrl 1 quick fix (works even when there are no errors
ctrl shift m add import
ctrl shift f reformat
ctrl / comment
ctrl \ uncomment
ctrl shift space parameter hints
ctrl hyperlink identifier
debugger
f5 step into
f6 step over
f7 run to return
f8 resume
f9 relaunch last
f11 run/debug last
ctrl f11 run
ctrl shift b toggle breakpoint
ctrl d display
ctrl q inspect
ctrl r run to line
ctrl u run snippet
refactor
alt t rectoring menu
ctrl shift z undo refactor
ctrl shift y redo refactor
alt shift r rename
alt shift v move
alt shift i inline
alt shift m extract method
alt shift l extract local
misc
f5 refresh
f1 infopop
f2 show resizeable hover
f5: step in
f6: step over
f7: ......
f8: ......
ctrl + space : code assistant
ctrl + o : 在編輯器中打開類結構,适用在編輯框最大化的時候,跳轉函數用...
ctrl + t : 也是在編輯器中使用,打開選擇的元素的繼承樹,可以迅速定位父類的方法在子類中的覆寫位置
ctrl + shift + r : 查找xml,jsp等非java檔案.
ctrl + shift + h : 打開制定類的類樹,适用在對于沒有源代碼的類的層次結構的了解,用f4是無法實作的
ctrl + h : 搜尋所有檔案中,包含的關鍵字,我用來搜尋xml等配置檔案....
alt + <-(左右箭頭): 編輯器的回退,就是著名的back!
ctrl + f6 : 切換編輯編輯器,我改成了table+ctrl
ctrl + m : 編輯框最大化...
ctrl + b : 插入斷點
insert : 點選insert可以切換幾種光标的形狀,每一種形狀都代表一種insert方式,預設的是smart insert吧。
ctrl+/:注釋
ctrl+\:取消注釋
最好不要用這個快捷鍵做code assistant, 容易和輸入法沖突。我一般設定成ctrl+j,同jbuilder的一樣。
我自定義的其它的設定還有:
ctrl+tab : code format
ctrl+i : 組織導入
ctrl+shift+m 自動搜尋滑鼠所在的類所屬的包并自動導入,加入import語句中。
ctrl+shift+o吧,把import *這種方式改為,import确定的類或接口
ctrl+shift+p 找另外一半括号
ctrl+1 smart fix (常用)
alt+/ 因為是中文系統是以ctrl+space總是出現輸入法,是以用這個替代。
按住ctrl,用滑鼠點method或類,自動跳到該類或方法。