views:

746

answers:

4

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+Space in Visual Studio, Esc in Xcode) and a GeneralTypingFault will throw a SwearAndHitYourDeskInAnger exception.

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?

+1  A: 

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.

cheesysam
@Kevin: If you do have to do this please make it available for people to download and let us know here!
Alex Angas
+2  A: 

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.

Allan Simonsen
A: 

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

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.

Chris Becke
A: 

Use the key binding set from here (see Step 2). Works pretty well: http://www.codedojo.com/?p=580

chaiwalla