Jump to content
  • Advertisement
Sign in to follow this  
Toadhead

Missing ' suggestions' VS feature in Code::Blocks

This topic is 2493 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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!

Share this post


Link to post
Share on other sites
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)

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!