adding terms to code completion

CodeLite installation/troubleshooting forum
User avatar
brainflex
CodeLite Curious
Posts: 4
Joined: Fri Jul 30, 2010 5:55 pm
Genuine User: Yes
IDE Question: C++
Contact:

adding terms to code completion

Post by brainflex »

hi folks,
i was wondering if anyone could tell me how to add common C++ keywords and expressions to the auto-complete feature of CodeLite. my installation has very few terms and i would like to add some common wordslike "string...#include...etc. it seems the library is quite limited in what it offers to complete.
is there a mechanism to add 3rd party libraries to CodeLite...like maybe from Visual Studio..etc.
any help or directions would help greatly. thank you...
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: adding terms to code completion

Post by eranif »

First:
Which OS, which version of codelite?

Second:
You are doing something wrong.

If you are not getting completion for members/classes etc, make sure all the below is true:
- You have a workspace and project opened
- Your file is part of the project
- Your parser settings are set correctly as described here http://codelite.org/LiteEditor/CodeCompletion and here http://codelite.org/LiteEditor/CodeCompletion

Eran
Make sure you have read the HOW TO POST thread
User avatar
brainflex
CodeLite Curious
Posts: 4
Joined: Fri Jul 30, 2010 5:55 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: adding terms to code completion

Post by brainflex »

OS- windows 7...members and classes working fine...version is latest with wxWidgets and minGW combined
User avatar
brainflex
CodeLite Curious
Posts: 4
Joined: Fri Jul 30, 2010 5:55 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: adding terms to code completion

Post by brainflex »

ok... i think i have it now. do you know where i can get a list of 3rd party files to add to this parser "include" path. i love this feature and would like to maximize it's use.
... or is there some way to access the database manually and include terms? jim
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: adding terms to code completion

Post by eranif »

brainflex wrote:ok... i think i have it now. do you know where i can get a list of 3rd party files to add to this parser "include" path
codelite follows your #include statements in your code. If you include a file and the path for its location existing in the parser's include path codelite will pick it up

There is no need to edit the database manually

Eran
Make sure you have read the HOW TO POST thread
User avatar
brainflex
CodeLite Curious
Posts: 4
Joined: Fri Jul 30, 2010 5:55 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: adding terms to code completion

Post by brainflex »

ok...i get it now...i was not including the proper #include header files...thanks
Post Reply