Author Topic: Code completion?  (Read 4397 times)

tulsoba

  • Guest
Code completion?
« on: April 22, 2007, 09:04:39 pm »
It seems that code completion only works when using std:: and for functions that have been declared.

But why does it not work for previous declared variables?

int myinteger = 44;

normally in this case you would type:

myint

followed by ctrl+space

which gives myinteger.

Likewise it could also be nice if the dot operator also gave a list of available functions:

std::string mystring = "abs"

abs.

but that does not work either!

Will any of this be implemented in a future release?

Offline raph

  • Almost regular
  • **
  • Posts: 242
Re: Code completion?
« Reply #1 on: April 22, 2007, 11:30:18 pm »
It is already working.
1.) Be sure to use a current nightly build (not rc2)
2.) You have to create a project first

tulsoba

  • Guest
Re: Code completion?
« Reply #2 on: April 22, 2007, 11:46:03 pm »
nightly builds are under construction:

http://www.codeblocks.org/nightly/

First I tried this link:

http://prdownload.berlios.de/codeblocks/CB_20070414_rev3855_Ubuntu6.xx.deb

but I get a timeout each time I try to download. Then I found a link to a Ubuntu 7.04 version in this post:

http://forums.codeblocks.org/index.php/topic,5681.0.html

reply #4 which I have installed. I have made sure to make a project for my files, but I still can only get code completion when typing std::

Offline magisu

  • Multiple posting newcomer
  • *
  • Posts: 19
Re: Code completion?
« Reply #3 on: April 23, 2007, 04:31:25 am »
you should use the nightly builds in the forum, not there.

tulsoba

  • Guest
Re: Code completion?
« Reply #4 on: April 23, 2007, 10:22:51 am »
The only place I can found a version to download is from the forum with the snapshots:

A recent development snapshot which can be found here (recommended).
http://forums.codeblocks.org/index.php?board=20.0

That group is also called the nightly builds:

Code::Blocks > User forums > Nightly builds

but I still cannot download from the link:
http://prdownload.berlios.de/codeblocks/CB_20070419_rev3876_Ubuntu6.xx.deb

have tried for two days now, but just get a timeout after some time.

But as I said the same post contains a version for Ubuntu 7.04
http://www.savefile.com/projects/808471604

which I have downloaded (where code completion only works when using std::).



Offline raph

  • Almost regular
  • **
  • Posts: 242
Re: Code completion?
« Reply #5 on: April 23, 2007, 11:22:47 am »
The problem is, that berlios the server is currently down.
That's why there weren't any new nightlies for three days :(

tulsoba

  • Guest
Re: Code completion?
« Reply #6 on: April 23, 2007, 04:11:43 pm »
Ok but should this version:

http://www.savefile.com/projects/808471604

not work correct?

tulsoba

  • Guest
Re: Code completion?
« Reply #7 on: April 23, 2007, 09:08:55 pm »
Ok the link now works:

http://prdownload.berlios.de/codeblocks/CB_20070419_rev3876_Ubuntu6.xx.deb

but after installing code completion still not works for "." operator or when pressing Ctrl+space. It still only works when I type std::. But maybe it will be repaired in a future release, until then I will use eclipse CDT.