Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

Completion is scope sensitive ??

(1/3) > >>

daniloz:
Hi All,

I'm new to this forum, but have been working with Code::Blocks for some while now and since I discovery it I really liked it. It's the best source code editor ever !! Thank you for the great job!

My questions now (sorry if this is well know, but I couldn't find it in the help or FAQs):

1- Is code completion working only in the part of the code that a variable is defined, for example? Is it that smart?

2- It doesn't seem to be working for me in the following example:


--- Code: ---int AAA;
 
void main()
{
int BBB;
int CCC;
}

--- End code ---

That's what's happening:

-> If the cursor is inside the main() function, BBB and CCC get completed, BUT AAA is not found (no completions at all).

-> If the cursor is outside the main() function, none of the variables are completed.

BTW, I have the latest SVN version (compiled here using MinGW).

Thank you,
daniloz

blueshake:
if you type the codes, you need to save the file,so the codecompletion can get the chance to parse the file.
in the function,the codecompletion will parse the codes in the function body.so it work.have a try.it will work. :D

actually the current codecompletion can not parse file in real time.

daniloz:
Hi,

Thanks for you reply.


--- Quote from: blueshake on August 12, 2009, 12:16:09 pm ---if you type the codes, you need to save the file,so the codecompletion can get the chance to parse the file.

[...]

actually the current codecompletion can not parse file in real time.

--- End quote ---

I am aware of that. I've saved the file. :)


--- Quote from: blueshake on August 12, 2009, 12:16:09 pm ---in the function,the codecompletion will parse the codes in the function body.so it work.have a try.it will work. :D

--- End quote ---

You're right. If the cursor is INSIDE the function, I get BBB and CCC completed. It works perfect.

HOWEVER, if the cursor is OUTSIDE the function, no completion is done AT ALL.

Jenna:
Works fine here for me:
AAA, BBB and CCC are completed inside the function, AAA is completed outside the function.
C::B svn r5730.

Which version do you use ?

MortenMacFly:

--- Quote from: jens on August 12, 2009, 12:48:51 pm ---Works fine here for me:

--- End quote ---
Works here, too.

Navigation

[0] Message Index

[#] Next page

Go to full version