auto completion

Bernd Schubert bernd-schubert at gmx.de
Thu Feb 8 13:25:20 GMT 2007


On Thursday 08 February 2007 13:42, Andreas Pakulat wrote:
> On 08.02.07 13:09:54, Bernd Schubert wrote:
> > somehow I think codecompletion tries to complete too much. All I need is
> > showing the arguments of a function and showing members of a structure or
> > class.
>
> Which version of KDevelop are you using?

3.4.0, I would never report something on a not recent version ;)

>
> > So for a function: When I type "my_func(", ONLY now arguments should be
> > shown, but only as help. Long ago in the past it was that way.
>
> This works for me here. Or do you mean when you write the definition of
> the function?

Sorry, my mistake, when I tried to disable as much as possible, I also 
disabled "Automatic argument hints"

>
> > For a structure: When I type "my_struct->", as above, show arguments
> > after I typed the "->".
>
> Should work too, does here, although I use manual completion.

Yeah, this works, sometimes. Somehow it can't parse most of my structures, 
3.4.0 even very briefly shows an error message in the status bar. Sometime in 
the far future, when I have time, I will look I can find out, why it doesn't 
like my structures. 

>
> > Whats happens right now, I type "my_func(", nothing happens,

This was due to disabling "Automatic argument hints".

> > further "my_func(my_struct" and already now the selector appears and
> > shows the type of the structure. But I already finished typing, not only
> > that the auto completion confuses, it also actively forces more
> > keystrokes or mouseclicks then without autocompletion.
>
> uhm, autocompletion has a timeout after which its activated, so if you
> type fast enough it won't be triggered until you finished the word.

I would have to set much higher timeouts, but since this also effects 
structure parsing, too high timeouts are also not nice.

>
> > Is there a way to disable auto completion for everything else than
> > typing "func(", "stuct->" or "struct."?
>
> There's a way to disable auto code completion and argument hinting in
> general, see the C++ Options. Then you can have hints or completion by
> pressing Ctrl+Space.

Already did that, since auto completion is too annoying in its present form.


Thanks,
Bernd

-- 
Bernd Schubert
PCI / Theoretische Chemie
Universität Heidelberg
INF 229
69120 Heidelberg





More information about the KDevelop mailing list