Page 1 of 1

make code completion show data types

Posted: Wed Mar 03, 2010 6:31 pm
by Conan
Hey!

I'm quite new with CodeLite and also new with C++.
Is it possible to make CodeLite show the data type, additionally to the variable's name, in code completion dialog? Maybe the parameters for functions, too?
That would be great and i miss that very much.

Much thanks.
Conan

Re: make code completion show data types

Posted: Wed Mar 03, 2010 6:53 pm
by eranif
Are you talking about tooltips for variables?

Try enabling it from: 'settings -> tags settings -> general tab, display type info tooltips'

Eran

Re: make code completion show data types

Posted: Wed Mar 03, 2010 7:27 pm
by Conan
Thanks, I've found this already and it helps a lot, but I mean the code completion dialog opening with CTRL+SPACE.
This shows e.g. for a member "int length" only "length" instead of e.g. "int length".
Or for a function "set(int x, int y, int z)" it only shows "set" instead of e.g. "set(int, int, int)".

Is there something to enable in CodeLite to make this possible?

Thanks again.
Conan

Re: make code completion show data types

Posted: Wed Mar 03, 2010 7:42 pm
by eranif
Can u please post a screen shot?

Eran

Re: make code completion show data types

Posted: Wed Mar 03, 2010 8:40 pm
by Conan
Apart from that I don't know, what "__pos" and "__state" do in this dialog, it would be nice if there were a "int abc" instead of a "abc" shown in this dialog.
And for a function "int foo(int)", which isn't in the screenshot, it would be nice to see "int foo(int)" instead of simply "foo".

Thanks for your time.
Conan

Re: make code completion show data types

Posted: Wed Mar 03, 2010 9:17 pm
by eranif
Please submit a feature request for this, and I will add it.
https://sourceforge.net/tracker/?group_ ... tid=979963
BTW: once a function is selected, you will get a tooltip with all possible signatures inside it.

Eran

Re: make code completion show data types

Posted: Wed Mar 03, 2010 9:36 pm
by Conan
Thanks Eran.
I did that.

Conan