Author Topic: CodeCompletion in Codelite is very powerful.  (Read 22911 times)

henrya2

  • Guest
CodeCompletion in Codelite is very powerful.
« on: October 28, 2009, 04:30:56 pm »
CodeCompletion in Codelite is very powerful. It is just like Visual C++ 6 plus VisualAssitX.

Hope its feature can be ported to Code::Blocks.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: CodeCompletion in Codelite is very powerful.
« Reply #1 on: October 28, 2009, 04:45:15 pm »
CodeCompletion in Codelite is very powerful. It is just like Visual C++ 6 plus VisualAssitX.

Hope its feature can be ported to Code::Blocks.
I haven't tried too much in Codelite, but as I know, Codelite use the Ctags as a service to collect Tokens.
Also, Lex and Yacc based parser to collect locally tokens to do the "code completion" suggestion. Hopefully eranif ( author of Codelite) can help us a lot.  :D

Edit:

see here

http://forums.codeblocks.org/index.php/topic,10087.msg70875.html#msg70875
« Last Edit: October 28, 2009, 04:47:06 pm by ollydbg »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline blueshake

  • Regular
  • ***
  • Posts: 458
Re: CodeCompletion in Codelite is very powerful.
« Reply #2 on: October 29, 2009, 01:05:36 am »
But it seems that codelite can not parse template and do macro replacement too.
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Offline mmkider

  • Almost regular
  • **
  • Posts: 150
Re: CodeCompletion in Codelite is very powerful.
« Reply #3 on: October 29, 2009, 04:14:22 am »
CodeCompletion in Codelite is very powerful. It is just like Visual C++ 6 plus VisualAssitX.

Hope its feature can be ported to Code::Blocks.


I think function name can be rendered  color in the codelite.
But In the codeblocks, it's not.

Offline eranif

  • Regular
  • ***
  • Posts: 256
Re: CodeCompletion in Codelite is very powerful.
« Reply #4 on: October 29, 2009, 05:30:37 am »
But it seems that codelite can not parse template and do macro replacement too.
You are partially correct about the macro replacement, codelite has a limited capability in this area (similar to codeblocks I believe, it can only perform simple replacements of macros, but it can NOT evaluate if a macro is defined or not)

However, regarding the template, well you are wrong here. codelite can handle templates up to a certain degree.
I dont use templates much, since I think that templates are evil. But codelite *can* handle them (at least it can handle the ones I have wrote).

For example, codelite can not handle the STL templates, but it can handle the boost templates pretty well, plus some support for operator overloading (especially -> operator), for example:


Eran

Offline blueshake

  • Regular
  • ***
  • Posts: 458
Re: CodeCompletion in Codelite is very powerful.
« Reply #5 on: October 29, 2009, 06:56:43 am »
But it seems that codelite can not parse template and do macro replacement too.
You are partially correct about the macro replacement, codelite has a limited capability in this area (similar to codeblocks I believe, it can only perform simple replacements of macros, but it can NOT evaluate if a macro is defined or not)

However, regarding the template, well you are wrong here. codelite can handle templates up to a certain degree.
I dont use templates much, since I think that templates are evil. But codelite *can* handle them (at least it can handle the ones I have wrote).

For example, codelite can not handle the STL templates, but it can handle the boost templates pretty well, plus some support for operator overloading (especially -> operator), for example:


Eran


Seem powerful than codeblock's codecompletion.
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Offline blueshake

  • Regular
  • ***
  • Posts: 458
Re: CodeCompletion in Codelite is very powerful.
« Reply #6 on: October 29, 2009, 07:01:49 am »
CodeCompletion in Codelite is very powerful. It is just like Visual C++ 6 plus VisualAssitX.

Hope its feature can be ported to Code::Blocks.


I think function name can be rendered  color in the codelite.
But In the codeblocks, it's not.


I want the function name can be rendered color too.Just don't know how to implement this.
for example.
I define a funciton "abc" and not save the file.So the parser didn't know this(abc) is a function name until I save the file.It seems that the parser must have the ability to parse the file in a real time(once I add any chars to the file, it (parser) must reparse the file).
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?