Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
130 views
in Technique[技术] by (71.8m points)

Eclipse - List of default keyboard shortcuts

Is there a list of the default Eclipse keyboard shortcuts? I'm generally looking for language agnostic things like starting the debugger or deleting an entire line in the source editor.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Rather than a full list of shortcut (JGlass mentions for Eclipse 4.6 this pdf), I prefer using only a few shortcuts:

  • CTRL+Shift+L: "Show Key Assist", List of shortcuts (depending on the context)

http://help.eclipse.org/indigo/topic/org.eclipse.platform.doc.user/tips/images/key-assist.png

  • CTRL+3: Quick Access

http://4.bp.blogspot.com/-QqHaeh1yJDU/Tsoc0bZmaSI/AAAAAAAABVg/WzNyqfmRmXE/s1600/Eclipse+Quick+Access+now+shows+keybindings+for+commands.png
Source: "Good features of Eclipse 3.6 (Eclipse Helios) JDT, 2011, from Sony Thomas"

Those two covers almost everything.

You can add two others:

  • CTRL+1: Quick Fix

http://depth-first.s3.amazonaws.com/20080111/list_options.png

http://www.willianmitsuda.com/wp-content/uploads/eclipse_tips/spy_opentype.gif


Note that Eclipse 2019-09 now shows key bindings when command is invoked.

For presentations, screen casts and learning purposes, it is very helpful to show the corresponding key binding when a command is invoked.
When the command is invoked (via a key binding or menu interaction) the key binding, the command's name and description are shown on the screen. Key binding of triggered command shown on screen

https://www.eclipse.org/eclipse/news/4.13/images/show_key_bindings.png

You can activate this in the Preferences dialog via the Show key binding when command is invoked check box on the General > Keys preference page.
To toggle this setting quickly the command 'Toggle Whether to Show Key Binding' can be used (e.g. via the quick access).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...