PDA

View Full Version : Kdevelop autocomplete again



sard
February 20th, 2007, 12:55 AM
In

Project > project options > c++ specific > code completion > code completion databases > custom directory PCS

I've added the '/usr/include/c++/4.1.2/' folder

but code like this won't autocomplete. Any ideas?:mad:


#include <iostream>
#include <cstdlib>
#include <string>

int main(int argc, char *argv[])
{
std::string name("Ubuntu");
name. // Ctrl Space does nothing after .


return EXIT_SUCCESS;
}

HugoRune
March 13th, 2007, 09:58 AM
I am having the same problems.
Is there any solution for this?

lnostdal
March 13th, 2007, 12:23 PM
that's strange .. it works here .. i've recorded an animation that shows how i enable this here:
http://nostdal.org/~lars/tmp/kdevelop-autocomplete.gif

polomint
March 16th, 2007, 09:39 PM
Mmm interesting... did you have to press <ctrl> + <space> after typing "blah." to get the list up? I see that you didn't tick the "Automatic code completion" checkbox.

For me the manual <ctrl> + <space> does actually work. but the problem is that the completion list will never pop up on its own, even if the "automatic code completion" box is ticked, which defeats the whole purpose of _automatic_ code completion...

guess I'll just have to live with manual code completion for now :(

lnostdal
March 16th, 2007, 09:55 PM
yes, i hit ctrl-space