Reputation: 6507
My Macbook pro has Germany keyboard layout. XCode 4 has a keyboart shortcut for "move-line-up": Option-Command-[, but I cannot do that, as on German keyboard layout, "[" can only be typed using Option-5. So if I type Option-Command-5, it means Option-Command-5.
I have also tried to change the key binding for that function in XCode preference to Option-Command-5, but then in Xcode editor that key binding does not work.
Is there any way to type Option-Command-[ using German keyboard of Macbook Pro?
Upvotes: 6
Views: 2694
Reputation: 101
Apple revised the keyboard shortcuts in Xcode some time ago. And non-American keyboard layouts are now taken into account.
Line Up: ⌘+⌥+Ö
Line Down: ⌘+⌥+Ä
Upvotes: 0
Reputation: 5719
Consider using QWERTY layout for programming, especially Obj-C. Typing {}
and []
are just no fun with a German keyboard layout.
Upvotes: 1
Reputation: 1032
You could try rebinding the action to a different key combination. To change this, hit ⌘+,, then click the 'Key Bindings' section. Enter 'move line' in the search box and double click on a key combination to change it.
Upvotes: 3