make code completion show data types

General questions regarding the usage of CodeLite
Conan
CodeLite Curious
Posts: 4
Joined: Wed Mar 03, 2010 6:21 pm
Genuine User: Yes
IDE Question: C++
Contact:

make code completion show data types

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: make code completion show data types

Post by eranif »

Are you talking about tooltips for variables?

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

Eran
Make sure you have read the HOW TO POST thread
Conan
CodeLite Curious
Posts: 4
Joined: Wed Mar 03, 2010 6:21 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: make code completion show data types

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: make code completion show data types

Post by eranif »

Can u please post a screen shot?

Eran
Make sure you have read the HOW TO POST thread
Conan
CodeLite Curious
Posts: 4
Joined: Wed Mar 03, 2010 6:21 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: make code completion show data types

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: make code completion show data types

Post 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
Make sure you have read the HOW TO POST thread
Conan
CodeLite Curious
Posts: 4
Joined: Wed Mar 03, 2010 6:21 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: make code completion show data types

Post by Conan »

Thanks Eran.
I did that.

Conan
Post Reply