[MonoDevelop] Code completion window after a whitespace

Michael Hutchinson m.j.hutchinson at gmail.com
Tue Sep 22 15:00:36 EDT 2009


On Tue, Sep 22, 2009 at 2:30 AM, Mike Krüger <mkrueger at novell.com> wrote:
> Hi
>
> I've a question to all of you on how about you feel when adding
> automatic code completion popup after a whitespace. Especially it's
> about the class initializer context.
>
> I got this feature request:
>
> The pattern is usually:
>
>        new Foo () { <- [Return]
>            _ <- that is the cursor
>
> So what I suggest is: if the user presses return, we immediately pop the
> window up. That would also work as people type stuff like:
>
>        new Foo () {
>            Text = "Hello", [Return]
>            _ <- Show completion window again.
>
> Or in general, it could be any whitespace after a comma: so this works:
>
>        Foo () { Text = "Dingus", _<- here as well
>
> (I would add whitespace after '{' too).
>
> I think for this context it may be helpful - what do you think ?

I agree. Though in general I'm wary of making code completion too
aggressive, I think that in the case of object initializers it would
make sense.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list