Request : set current parameter in bold in code completion

General questions regarding the usage of CodeLite
kortyburns
CodeLite Enthusiast
Posts: 13
Joined: Mon Dec 15, 2008 1:26 am
Location: France
Contact:

Request : set current parameter in bold in code completion

Post by kortyburns »

Suppose a function has 6 parameters : a,b,c,d,e,f.

Using ctrl+shift+space command displays the whole parameters's list, but when a function has several parameters, it s difficult to see which one we are currently writting. I propose the VStudio manner, which displays in bold the current parameter.

example :

Code: Select all

my_func(a,b,c,
Here, the hint window that appeared using ctrl+shift+space could display, in bold, the 'e' parameter, so the user knows the current parameter he is writing is the 4th one.
Ubuntu64 Intrepid(8.10)
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Request : set current parameter in bold in code completion

Post by eranif »

There is one flaw with this design:
This is scintilla's API to implement what you suggested:

Code: Select all

// Highlight a segment of the definition.
void CallTipSetHighlight (int startPos, int endPos);
This will work nice in most cases, however, codelite calltip is a bit different, if you use overloading:

Code: Select all

void foo(int i, int j);
void foo(std::string str);
the calltip typing:

Code: Select all

foo(
is

Code: Select all

foo(int i, int j)
foo(std::string str)
Note that the calltip is 2 lines, however I would lke to colour both int i AND std::string str, so the calltip will look like:

foo(int i, int j)
foo(std::string str)

and this is not possible currently with the current API

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