18

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?

Kevin L.
  • 4,548
  • 7
  • 39
  • 54
  • 1
    Can you share your keyboard customization files for XCode - the ones that are based on Visual Studio. In fact there are two shortucts I add to visual studio Ctrl+Y as delete current line and Ctrl+W as close document. – sorin Jan 11 '10 at 12:40
  • 1
    +1 for SwearAndHitYourDeskInAnger exception – Nick Bolton Jan 12 '10 at 16:07
  • If you Google brought you here for the opposite (sort of i.e. VSCode instead of VS) check out my Xcode keybindings for VScode: https://marketplace.visualstudio.com/items?itemName=stevemoser.xcode-keybindings – Steve Moser Apr 05 '19 at 14:31
  • After almost 12 years, I have same question. not being able to use shortcuts are the only reason i'm switching to vscode for swift programs – Keval Langalia Feb 18 '21 at 18:29

3 Answers3

2

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
  • 1,109
  • 5
  • 15
  • 32
1

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
  • 3,327
  • 1
  • 15
  • 4
0

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
  • 34,244
  • 12
  • 79
  • 148