Function Call Tips - how do they work

General questions regarding the usage of CodeLite
HJarausch
CodeLite Veteran
Posts: 98
Joined: Thu Feb 18, 2010 10:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

Function Call Tips - how do they work

Post by HJarausch »

Hi,

how can I enable Function Call Tips for my own functions?
Is there a special type of comment somewhere?

Many thanks for a hint or pointer,
Helmut.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Function Call Tips - how do they work

Post by eranif »

HJarausch wrote:how can I enable Function Call Tips for my own functions?
when you type:

Code: Select all

function_name(

You should see a tooltip with the function parameters

This will happen only if:
1) The option 'settings -> tags settings -> display function calltip' is ENABLED
2) Your file belongs to a project
HJarausch wrote:Is there a special type of comment somewhere?
I dont understand this statement

Eran
Make sure you have read the HOW TO POST thread
HJarausch
CodeLite Veteran
Posts: 98
Joined: Thu Feb 18, 2010 10:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Function Call Tips - how do they work

Post by HJarausch »

Many thanks!
HJarausch wrote:Is there a special type of comment somewhere?
I dont understand this statement

E.g in Python, a comment directly following the function definitions is a special comment
belonging to that function. When one uses the Python IDE (idle) this comment is displayed
when you type in a function call (to that function).
So, in principle, one could implement something similar in CodeLite, be it a special
comment like //[CodeLite] or a special pragma (probably not a good idea).

Helmut.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Function Call Tips - how do they work

Post by eranif »

There is a FR for displaying the comment along with the tip - this will get implemented in the future

Eran
Make sure you have read the HOW TO POST thread
Post Reply