简体   繁体   English

如何在Macbook Pro的德语键盘上使用Xcode“move-line-up”快捷键?

[英]How to use Xcode “move-line-up” shortcut on German keyboard of Macbook pro?

My Macbook pro has Germany keyboard layout. 我的Macbook专业版采用德国键盘布局。 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. XCode 4有一个用于“移动阵容”的键盘快捷键:Option-Command- [,但我不能这样做,因为在德语键盘布局上,“[”只能使用Option-5键入。 So if I type Option-Command-5, it means Option-Command-5. 因此,如果我键入Option-Command-5,则表示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. 我还尝试在XCode首选项中将该函数的键绑定更改为Option-Command-5,但是在Xcode编辑器中,键绑定不起作用。

Is there any way to type Option-Command-[ using German keyboard of Macbook Pro? 有没有办法输入Option-Command- [使用Macbook Pro的德语键盘?

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. 考虑使用QWERTY布局进行编程,尤其是Obj-C。 Typing {} and [] are just no fun with a German keyboard layout. 使用德语键盘布局键入{}[]并不好玩。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM