User forums > Help
Autocomplete problem
dgrafix:
Hi,
I seem to have a problem with autocomplete not recognising variables.
For example (edited):
myclass * handlename= new myclass();
handlename-> - i would expect this to produce a list of methods and variables under type myclass, it doesnt.
What do i need to do to enable this??
Jenna:
Did you really have a variable named this ?
If yes, you should read a good book about programming and about using (or not using) keywords as names for variables.
dgrafix:
:lol:
lol no, i dont have a declaration called 'this' :D
I have edited above, still have the same issue, it does not seem to parse classes and subclasses for some reason.
eg i may have a variable or classname inside that called "a_variable" or "my_subclass"
i would expect
--- Code: ---handlename-> |here i would expect a list of what (public) identifiers are declared in class |
--- End code ---
I dont get autocomplete, but the code executes fine.
Jenna:
Works here (XP SP3 at work , C::B trunk) with a very simple testclass (ctor, dtor, one public function).
Did you save your class and the file where the header-file is included, so that it can be parsed ?
Is CodeCompletion enabled or is it accidently disabled (make sure "Settings -> Editor... -> Code-completion and symbols browser -> Code completion -> Disable code-completion" is unchecked).
dgrafix:
-I have the header file containing the class in the same dir as my program .cpp file.
-I have code completion definetely enabled.
-The directory path is listed in compiler search folders and in c++ parser options.
-The class has a namespace but i am using that namespace in the main code.
-It is autocompleting the namespace and classname. ie if i manually type out:
Namespace::BasicClassName::.... then it displays all.
Also, if i just use
BasicClassName::.... then it displays all.
but not when i make an instance of the class ie:
BasicClassName* instancename = new BasicClassName();
instancename -> this is not autocompleting, even with ctrl space.
It must be something i am missing/overlooking in my setup as its the same for me on both linux and windows. I have the default package versions.
Navigation
[0] Message Index
[#] Next page
Go to full version