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?
Press ⌥⇧↑ (macOS), or Alt+Shift+Up Arrow (Windows/Linux), to move a line up. To move a line down use ⌥⇧↓ (macOS), or Alt+Shift+Down Arrow (Windows/Linux).
Place the cursor where you want to insert the line break. Hold the ALT key and press the Enter key for Windows (for Mac – hold the Control and Option keys and hit the Enter key).
If on the Mac you set the Input Source to "German Standard" (and not "German"), then you will have @ produced by Option/alt Q and € by Option/alt E. That may be how your 3rd party keyboard is printed. The layout shown in HT201794 reflects an Apple keyboard which corresponds to the "German" input source.
Save this question. Show activity on this post. Jump to the top is a simple matter, that is just CMD + UP .
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.
Consider using QWERTY layout for programming, especially Obj-C. Typing {}
and []
are just no fun with a German keyboard layout.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With