User forums > General (but related to Code::Blocks)

Compiling opened files + library lookup

(1/2) > >>

Blanchy:
Hi,

Been using code::blocks for a few hours now and it's probably the best c/c++ editor I've tried so far  8)

One or two things though, I'm able to compile projects fine, but if I open an individual file (ie outside of a file), how can I compile it
from witihn code::blocks? Pressing the compile button will simply compile the existing project in the workspace.

Also, I've Java and Eclipse a fair bit before and it has a neat feature where by if you were to do the following:


--- Code: ---string s;
s.
--- End code ---

it would then present you with the list of functions that you call on the string s, is there anyway you can get code::blocks to do the same with C++? (it already does a similar thing if you have a struct, by showing you a list of variables that are in the struct)

Thanks

JGM:

--- Quote from: Blanchy on July 12, 2007, 01:48:18 pm ---One or two things though, I'm able to compile projects fine, but if I open an individual file (ie outside of a file), how can I compile it
from witihn code::blocks? Pressing the compile button will simply compile the existing project in the workspace.

--- End quote ---

Well, closing all or the active project and opening an stand alone file.cpp should work when pressing the build button.


--- Quote from: Blanchy on July 12, 2007, 01:48:18 pm ---Also, I've Java and Eclipse a fair bit before and it has a neat feature where by if you were to do the following:


--- Code: ---string s;
s.
--- End code ---

it would then present you with the list of functions that you call on the string s, is there anyway you can get code::blocks to do the same with C++? (it already does a similar thing if you have a struct, by showing you a list of variables that are in the struct)

--- End quote ---

codeblocks already have a code completion plugin.

Blanchy:
I've looked in plugins and the code completion box is ticked.

How powerful is it though, for instance the example I posted above to do with strings isn't working.

Blanchy:
Also, is it possible for code::blocks to remeber the text size I like?

Every time I open it the text is quite small, so I have to use CTRL + mouse roller to increase the text size/zoom in.

mandrav:

--- Quote from: Blanchy on July 12, 2007, 03:54:25 pm ---I've looked in plugins and the code completion box is ticked.

How powerful is it though, for instance the example I posted above to do with strings isn't working.

--- End quote ---

The file must belong to a project.

Navigation

[0] Message Index

[#] Next page

Go to full version