Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Xcode "move-line-up" shortcut on German keyboard of Macbook pro?

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?

like image 427
chance Avatar asked Nov 10 '12 21:11

chance


People also ask

How do you move a line up and down on a Mac?

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).

How do you skip a line on a Mac keyboard?

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).

How do you press on German keyboard on Mac?

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.

What is the keyboard shortcut to move to the top of a file in Xcode?

Save this question. Show activity on this post. Jump to the top is a simple matter, that is just CMD + UP .


2 Answers

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.

like image 69
Nik Avatar answered Sep 29 '22 03:09

Nik


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

like image 24
Yang Meyer Avatar answered Sep 29 '22 03:09

Yang Meyer