News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Autocompletion for structs and STL not working

Started by Pressure, October 15, 2011, 04:36:31 PM

Previous topic - Next topic

Pressure

Hi, I can't seem to get autocompletion to work. I know this has probably been anwered 100000 times but I couldn't find the answer in searches. I'm using CodeBlocks 10.05 for Windows 7.

Thanks for your help.


#include <iostream>
#include <string>
#include <vector>
using namespace std;

typedef struct
{
    int x,y;
} Point;

class PointClass
{
public:
    int _x,_y;
};


int main()
{
string s;
vector<int> v;
Point a;
PointClass b;
v. // nothing happens
s. //nothing happens
a. //nothing happens
b. // works

return 0;
}



Jenna

The codecompletion has improved a lot since the 10.05 release.

If you use a recent nightly build, it should work (at least it works fine on linux with an actual version).
See: Nightly builds forum .

Pressure

Nightly build worked like a charm. Thanks for your help.