6
votes

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?

2

2 Answers

3
votes

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.

1
votes

Consider using QWERTY layout for programming, especially Obj-C. Typing {} and [] are just no fun with a German keyboard layout.