User forums > Using Code::Blocks

Structure code completion.

(1/3) > >>

cjbailey1:
At the risk of repeating this ad infinitum, I have a query about code completion and structures within C.

Firstly though, let me congratulate everyone on the program itself, Code::Blocks has been of so much use to me that it is one of my highest usage programs on Ubuntu, and has also made it onto my USB stick as part of a PortableApps install for windows.  I have been so impressed that I have also introduced several other people to Code::Blocks  :D

Anyway, down to the question:
 Code completion works for most things that I have used within Code::Blocks, however, it doesn't seem to function with structures properly.
If I define
--- Code: ---struct tempStruct
{
  int data1;
  int data2;
  int data3;
};
--- End code ---
I get code completion if I type in:

--- Code: ---tempStruct.

--- End code ---


However, if I define the following

--- Code: ---struct tempStruct myTemp;

--- End code ---
then typing in

--- Code: ---myTemp.

--- End code ---
results in no code completion.

I am running SVN version 4592 now, having upgraded the other day to see if this bug went away, but it is still there.

Is this something that I am doing wrong?
If not, then is there a version which has this working?
Again, if not, then is it something that is being worked on?

cjbailey1:
and another bit.

Code completion on a structure within a structure doesn't work either, the embedded structure is not accessible under any circumstances through code completion.

JGM:
CodeCompletion plugin stills doesn't have some features. In c++ mode you could declare the structture like this:

struct test
{
  int i;
}

//delclaration
test myTest; //instead of using old c style (struct test myTest)

That will work!

cjbailey1:
Thanks for that, I'm running in C at the moment so I will just have to wait until it's implemented.  Just means I have to stop being lazy and code as I used to!

Latent Force:
Is anybody know when this feature will supported by plug-in? I'm using svn 4639 and need so much this  :D
It impacts me. And I think I have to find another IDE :(( insted of my lovely C::B

Navigation

[0] Message Index

[#] Next page

Go to full version