Thursday, September 27, 2012

Monodevelop and DefaultKeyBindings

Frustratingly, MonoDevelop has a custom key binding scheme such that if you come from the Windows world and expect your End and Home keys to work in the time honoured tradition you're out of luck.

I just spent a few hours scratching my head over the problem because I habitually press the end key to go to the end of a line and on a Mac it goes to the end of the document. It is possible to remap this behaviour using the DefaultKeyBindings.dict file however, MonoDevelop overrides this too and defeats all your chosen bindings once again.

So, if you want to be able to use the key bindings on Monodevelop on a Mac but retain the editing style that Visual Studio / Windows developers are used to, and why not because if you're using MonoDevelop on a Mac it's because you're used to C# development but want to write MonoTouch, then you must go to the preferences section of the MonoDevelop application and add your own preferences for those keys.

No comments: