User forums > Using Code::Blocks

functions list popup thingy o_O?

(1/3) > >>

rainman:
After searching for a simple but powerful IDE, I decided to go with CodeBlocks and until now I have to say I like it a lot!

I wasn't too sure where to post this but seeing how the screenshot shows the win version, I'll post here.

What I'm wondering is how can you get that feature that lists the functions working?

Let's say I type std::, would CodeBlocks display the list of what's available to append? Or am I totally way off :X

I use the latest version of CB (not cvs) with the C++ Toolkit 2003.

Rock on everyone 8)

rickg22:
Hey rainman, congrats for your visit, enjoy your stay :)

Oh, that "functions list popup thingy" is called "code completion". The configuration is in the "Settings, Configure plugins" menu. You have to enable the global includes for this to work with standard libraries and such.

Now I'd enable the "use caché" option, but i don't know if it still crashes :P. You'd have to try.

rainman:
Thanks for the fast reply rickg22. I thought at first it was that but I wasn't too sure so I gave it  weird name such as "function list popup thingy" :roll:

I did the proper changes such as enable it for global includes and I did try use cache. Nothing crashes but nothing happens.

if I type std::, nothing happens. I try to change the delay to 0ms but still nothing. Same goes if I try with string like name.substr, won't see the popup where I'd normally see substr, length, etc.

I checked if the plugin was properly loaded and it was. tried unloading/reloading, still nothing.

I then saw that I could do CTRL+J for auto complete but that I guess is something completely different? :?

CodeBlocks still remains the best ide I could find with or without this feature but having previously used ide's where such feature existed (eclipse for java, VS .Net), it's something I'll try and fiddle around to get it working. Got nothing to lose 8)

Thanks.

rickg22:
autocomplete is for commonly used structures: if's, for's etc.

Maybe std:: isn't supported at all in Codecompletion? Yiannis, any help?

mandrav:
Yep, the STL is not supported yet. But it will at some point ;)
In the meantime, you code should be parsed correctly as well as global functions/classes/etc (if you 've enabled global parsing).
Some things are not implemented yet, like typedefs, but for the most part it works ok.

Golden tip:
If at some point you add/remove/reorganize files/classes in your project and you see strange behaviour of the code-completion, switch to the "Symbols" tab of the project manager, right-click on the "Symbols" item and select "Re-parse now".

Yiannis.

Navigation

[0] Message Index

[#] Next page

Go to full version