在 Xcode 中映射 Visual Studio 键盘快捷键
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1430714/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Mapping Visual Studio keyboard shortcuts in Xcode
提问by Kevin L.
At work I use Visual Studio 2008 and at home I use Xcode 3.2 (and I love both of them). But a major annoyance is the difference in keyboard shortcuts - I will be happily coding and then attempt to perform an autocomplete (Ctrl+Spacein Visual Studio, Escin Xcode) and a GeneralTypingFault
will throw a SwearAndHitYourDeskInAnger
exception.
在工作中我使用 Visual Studio 2008,在家里我使用 Xcode 3.2(我喜欢它们)。但是,一个主要的烦恼是在键盘快捷键的区别-我会愉快地编码,然后尝试(执行自动完成Ctrl+Space在Visual Studio中,Esc在Xcode中)和GeneralTypingFault
将抛出一个SwearAndHitYourDeskInAnger
异常。
Is there an easy way (some kind of plugin or script) to map Visual Studio shortcuts in Xcode or vice-versa without having to manually enter a huge(or somewhat huge) set of shortcuts?
是否有一种简单的方法(某种插件或脚本)可以在 Xcode 中映射 Visual Studio 快捷方式,反之亦然,而无需手动输入大量(或有点庞大)的快捷方式?
回答by cheesysam
There is a 'Key Bindings' Menu in Xcode preferences with the option to import Sets of binds. perhaps there is a VS set you can download. Failing that you could (admittedly laboriously) set them up yourself.
Xcode 首选项中有一个“键绑定”菜单,可以选择导入绑定集。也许有一个 VS 集你可以下载。否则你可以(诚然费力地)自己设置它们。
回答by Allan Simonsen
You can use the "Metrowerkz Compatible" setting (XCODE->PREFERENCES->KEY BINDINGS). It's not a 1:1 mapping with VS, but it's a lot closer than XCode natively.
您可以使用“Metrowerkz Compatible”设置(XCODE->PREFERENCES->KEY BINDINGS)。它不是与 VS 的 1:1 映射,但它比原生的 XCode 更接近。
回答by Chris Becke
Ive been trying to set my XCode keybindings up to mirror my Visual Studio ones (as I'm way more familiar with the VS ones).
我一直在尝试设置我的 XCode 键绑定以反映我的 Visual Studio 键绑定(因为我对 VS 键绑定更熟悉)。
The ones that give me a lot of problems are Visual Studios use of F keys - where on OS X a lot of the F keys are accelerators that pop up task switchers and so on.
给我带来很多问题的是 Visual Studios 对 F 键的使用——在 OS X 上,很多 F 键是弹出任务切换器等的加速器。