Advertisement

Missing ' suggestions' VS feature in Code::Blocks

Started by February 09, 2012 06:14 PM
5 comments, last by blurmonk 12 years, 9 months ago
Hello all,

I always used to program in Visual Studio, but now I am playing around in Linux and I need a programming environment.
So I downloaded Code::Blocks but I really miss the features of automatically showing all class members and variables after pressing the class(.), class(->) or class(::). In VS, after you press either the . :: or the ->, VS shows a list of members that you can choose. I got used to this so much that I'm really feeling lost without it. It both saves time and informs you about all possible functions.

Is there an IDE in Linux that has a similar functionality?
The problem is that I don't know the word for this functionality so I cant realy google it :)

Greetings,
Rob
It's called code hinting as far as I know and Code::Blocks does have it I believe, at least it's working in my windows version. Perhaps you need additional settings to make it work in the linux version? Hopefully providing you with the keywords "Code hinting" was of some help!
Advertisement
There is a code completion plugin in Code::Blocks and it works fine under linux (at least with a recent nightly build, not sure about the official release)

You might need to use a recent version of codeblocks(10.05 version is really outdated) and/or trying to play arround with the code completion settings (settings->editor->cc plugin)
I checked the code completion plugin amd as far as I know its already installed and enabled by default. Atleast according to the plugin manager. Ill check it out further when i get home. Thanks.

Rob
Ok so it seems I have code completion installed. It auto adds the second ' " ' or ' }' after you typ the first one. But still no code hinting sad.png
Am I the only one without this function? Or is the rest just not missing this feature? smile.png

Greetings,
Rob



Edit:
My guess is that it has something to do with OpenGL not running smoothly on my laptop. Windows 7 runs fine but Ubuntu seems to be really laggy. I dont understand why, but after disabling OpenGL vsync my system like someone advised me to do it isn't lagging anymore. This also seemed to cause Code::Blocks working fine again.
Its been a while now since I used Code::Blocks, but if I remember correctly, you need to press Ctrl+Space to open up the code hinting feature
Advertisement
I have used CB for a while. Then I have tried Eclipse(CDT) and I am extremely happy with Eclipse code sensing featuress so far. It is much more bloated but if you need to scramble through complex libraries and headers with macros, Eclipse is much better than CB. Eclipse can expand C macros in place as well.
Which is really really helpful with C. On the other hand CB is great for smaller projects in my view.

I liked that I can just open a single .c file and write and compile with CB. In Eclipse one needs to create a project for it which is overkill.

CB also provides nice project wizards, with Eclipse choices are limited. For example CB Opengl project works out of the box, in Eclipse the setup is not such straight forward as far as I can tell.

This topic is closed to new replies.

Advertisement