[MonoDevelop] Strange code completion for '!' and '+'

Wolfram monodevelop at wkresse.de
Tue Mar 22 06:10:49 EDT 2011


Hi,

Thanks Mike, that's great news! :o)

I wasn't even considering 2.6, since I am using MonoDevelop exclusively with
the Unity3D Game Engine SDK, and they have 2.4 bundled with their
installation.

But maybe I should just consider typing spaces between assignments ^^

Cheers,
Wolfram


Mike Krüger wrote:
> 
> Hi
> 
> I sended the mail too early :/.
> 
> I added some more commit chars ( +-&| etc.) to the list widget - the
> '!' 
> was fixed earlier in 2.6.
> Expect that the other commit chars will work in beta 2.
> 
> Regards
> Mike
> > Hi.
> >
> > MonoDevelop behaves rather strangely when typing '!' or '+' while the
> code
> > completion selection popup is active.
> > Consider this C# example:
> >
> > void foo(){
> > 	int bar=1;
> > 	int baz=1;
> >
> > 	if(ba$
> >
> > ['$' denotes the current cursor location]
> >
> > Assuming "bar" is highlighted in the popup, the code
> completion works as
> > expected when directly typing operators, such as * / - or&&.
> However, for +
> > or ||, the current code completion is cancelled instead, and I end up
> with
> > "if(ba+".
> >
> > Even worse, when typing '!', I obviously intend to type
> "if(bar!=". However,
> > MonoDevelop moves the '!' to the beginning of the word instead, and
> produces
> > "if(!bar=".
> >
> > While the former is just an inconvenience, the latter is very
> annoying,
> > since it happens (at least to me) all the time, and I'm forced to
> keep
> > moving the cursor to the beginning of the word, remove the '!', and
> > re-insert it where it's supposed to go.
> >
> > I found this which seems to be related:
> >
> http://monodevelop.com/Developers/Tasks/Source_Editing/Code_Completion
> > However, the functionality proposed on that page doesn't even work:
> when
> > auto-completing a member function this way, MonoDevelop puts the '!'
> again
> > at the beginning of the call, but fails to add the '(' or '()' at the
> end.
> >
> > Is it possible to please change the behaviour of MonoDevelop for
> this?
> >
> > I am using MonoDevelop 2.4.2 Windows (the one provided with Unity3D).
> >
> > Thanks,
> > Wolfram
> >
> > --
> > View this message in context:
> http://mono.1490590.n4.nabble.com/Strange-code-completion-for-and-tp3394184p3394184.html
> > Sent from the Mono - MonoDevelop IDE mailing list archive at
> Nabble.com.
> > _______________________________________________
> > 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
> 


--
View this message in context: http://mono.1490590.n4.nabble.com/Strange-code-completion-for-and-tp3394184p3395954.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.


More information about the Monodevelop-list mailing list