[MonoDevelop] Autocomplete behavior question
ibboard at gmail.com
Sat Mar 5 06:37:18 EST 2011
On 04/03/11 09:37, Piotr Wysocki wrote:
> Just my 2c of user experience.
> On 03/03/2011 06:09 PM, Stephen Shaw wrote:
> > I was talking to mkrueger on irc and asked that I move this to the
> mailing list.
> > In monodevelop, if whenever text the cursor is touching will be
> > deleted if you hit ctrl+space which triggers the auto complete list.
> > This has thrown me off a few times.
> > For example, if you type else and place the cursor at the beginning
> > and hit ctrl+space selecting anything from the list like if will
> > delete else and replace it with if.
> > I was wondering if maybe doing something like highlight the text that
> > the cursor is touching, when you hit ctrl+space, would visually show
> > that it is going to delete that text with whatever you select.
> This annoys me as well.
> I pretty often catch myself on doing this way of coding:
> var x = FooMethod (args);
> then after some thought I would change that to:
> var x = BarMethod (FooMethod (args));
> so I go with the cursor to 'F', type BM, ctrl-space, and voila!
> But instead of "BarMethodFooMethod (args)" (which is only a few
> characters left from the target) I get "BarMethod (args)".
> I would prefer "BarMethodFooMethod" -- having cursor still at 'F',
> I can always do ctrl-shift-right, del.
> It's not an issue for me anymore, it annoyed me enough
> to learn myself to type a space before 'F' and go left (before the
> space). And you always have Undo.
> But as the issue came up for others, I would welcome a change of behaviour.
The other option, which Eclipse supports, is to have a toggle in the
preferences for "overwrite" or "don't overwrite" when you're in that
situation. That gives the best of both worlds for those who want it to
work in specific ways (i.e. always want an overwrite when the cursor has
text to the right of it, or always insert even when the cursor has text
to the right of it).
More information about the Monodevelop-list