[MonoDevelop] Multikey bindings?

Lluis Sanchez Gual lluis at novell.com
Mon Jul 7 05:26:48 EDT 2008


El ds 05 de 07 de 2008 a les 07:56 -0400, en/na Chris Wright va
escriure:
> Hello,
> 
> I'm trying to create an addin for MonoDevelop to add refactoring
> commands. It's going to add a fair number of commands, though, which
> means a fair number of shortcut keys to assign.
> 
> In Visual Studio, you can create multikey key bindings, such as
> Control+K C (comments the selected code, by default) or Control+K U
> (uncomments). Can you do this with Mono.Addins or the MonoDevelop
> addin API?

Yes, you can define a shortcut using this syntax: shortcut="Control+K|C"

> 
> Also, I notice that a large number of classes in MonoDevelop are
> marked as internal (in the Core solution, the keyword's found about
> 4900 times). I share Oren Eini's opinion on this; he mentions a
> workaround at http://www.ayende.com/Blog/archive/2008/03/12/Internal-Stripping.aspx

Avoiding the use of internal classes is complete nonsense to me.

> that I'd rather not use. Is there any reason for, say,
> MonoDevelop.Ide.Services to be internal? It seems silly to replicate
> existing functionality just because the original is marked internal.

If you want to use the MD api, look the the public classes, not at the
internal ones. You can access to services using IdeApp.Services.

Lluis.




More information about the Monodevelop-list mailing list