[MonoDevelop] Ctrl-K change - opinions?

Jeffrey Stedfast fejj at novell.com
Fri Mar 16 13:52:26 EDT 2007


On Fri, 2007-03-16 at 18:13 +0100, Miguel Ángel Pérez wrote:
> In Visual studio Ctrl-K is the first for a combination of two keys.
> For example Ctrl-K and Ctrl-C add line comments to the current
> selected text block and Ctrl-K and then Ctrl-U deletes them.

ah, interesting to know...
> 
> As i was very used to vs the first time i tried this in monodevelop i
> killed the first line of the block i was going to comment :p 

I can imagine :)
> 
> Configurable key bindings will be a great feature to keep all of us
> happy ;)

Yes, absolutely... I'd love to see a keybinding extension (which maybe
some default addins to make it work like VS or Emacs or... etc)

Jeff
> 
> 2007/3/16, Patrick McEvoy <patrick at villadays.com>:
>         In nano Ctrl+K deletes the entire line. I think both are good
>         shortcuts
>         to have.
>         
>         Jeffrey Stedfast wrote:
>         > http://bugzilla.ximian.com/show_bug.cgi?id=81151
>         >
>         > Currently, Ctrl-K will delete the entirety of the current
>         line, but this 
>         > behavior differs from Emacs so it drives me a little batty
>         sometimes ;)
>         >
>         > I'm not sure if the current Ctrl-K behavior emulates some
>         other editor
>         > out there (Ctrl-K doesn't do anything in Visual Studio nor
>         SharpDevelop 
>         > afaict, or at least not bound to a delete-line action).
>         >
>         > Anyways, I've created a patch against SourceEditorView.cs
>         (which is
>         > where DeleteLine() is implemented) to make it mimic Emacs
>         Ctrl-K 
>         > behavior:
>         >
>         >
>         > example with cursor in the middle of a line:
>         >
>         > This is |line 1
>         > This is line 2
>         >
>         > <Ctrl-K>
>         >
>         > This is |
>         > This is line 2 
>         >
>         > <Ctrl-K>
>         >
>         > This is |This is line 2
>         >
>         >
>         > example at the beginning of a line:
>         >
>         > |This is line 1
>         > This is line 2
>         >
>         > <Ctrl-K>
>         >
>         > |
>         > This is line 2
>         >
>         > <Ctrl-K>
>         >
>         > |This is line 2
>         >
>         >
>         >
>         > Is anyone opposed to this change?
>         >
>         >
>         > Jeff
>         >
>         > _______________________________________________ 
>         > Monodevelop-list mailing list
>         > Monodevelop-list at lists.ximian.com
>         > http://lists.ximian.com/mailman/listinfo/monodevelop-list
>         >
>         
>         _______________________________________________
>         Monodevelop-list mailing list
>         Monodevelop-list at lists.ximian.com
>         http://lists.ximian.com/mailman/listinfo/monodevelop-list
> 
> 
> 
> -- 
> -- Saludos -- 
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list



More information about the Monodevelop-list mailing list