Update: for the CSV you can import into Eclipse, check this Gist [Ed: or not... looks like it's filled with ? marks where the key icons s开发者_运维知识库hould be]
Discussion
I've avoided Java development in OS X for some time now, only because Eclipse's UI feels extremely inconsistent with OS X's HIG. Not least of these are its fine-under-windows-but-totally-unacceptable-on-a-Mac default key bindings.
I'm in the process of fixing the key bindings I can in Preferences -> Keys
, but a few are problematic.
Screen of the configuration pane if anyone has trouble finding it:
Bindings I've changed so far: [Note: if any of these seem strange, I'm trying to mimic Xcode where possible in the absence of an even broader standard shortcut on the Mac]
Name | Old Command | New Command ---------------------------------------------------- Content Assist | Ctrl-Space | Escape Redo | Cmd-Y | Cmd-Shift-Z Find Next | Cmd-K | Cmd-G Find Previous | Shift-Cmd-K | Shift-Cmd-G Backward History| Cmd-[ | *Unbind Command* Forward History | Cmd-] | *Unbind Command* Properties | Alt-Return | Cmd-I Debug | Cmd-F11 | Cmd-Y Run (in Windows)| Cmd-Shift-F11 | Cmd-R Build Clean | *Nothing* | Cmd-Shift-K
Bindings I need help with:
- Indent/Outdent selection - Eclipse has these bound to tab & shift-tab, but they don't appear in the Keys dialog or any menu items (so Keyboards.prefpane can't change it eitehr).
I'll edit this question with a few more as I think of them. Because there isn't necessarily a single correct answer and this page may change over time, this is more appropriate as a community wiki page. The goal of this page will be to create a settings export that can be shared and reused by others.
Another more Mac-like shortcut is setting the Properties commands shortcut to Command + I (in Windows).
I ran into an irritating key binding behavior just today. On Macs, the option key plus any standard key is always used to access extended characters — and this behavior has been consistent among all standard Mac apps for decades. I may be in a minority among coders, but I think given that everything supports UTF-8 nowadays, directly typing non-ASCII characters like ©, –, ¥, “, ”, €, and ¢ make for more readable and compact HTML than escaping everything (©
, –
, ¥
, “
, ”
, €
, and ¢
, respectively). Likewise with native words in other languages like français (français
) and español (español
), and typographically better contractions like they’re (they’re
).
Eclipse's key bindings irritatingly override that and prevent standard Mac keyboard behavior. You can return the normal Mac behavior here by going back into Eclipse's Keys prefs, sorting by Binding, and removing all bindings with ⌥ followed by a letter or number (but not those starting with ⌥⌘).
精彩评论