User forums > Using Code::Blocks
newbie questions
kateausten:
hello,
It's the first time I'm using an IDE.
It seems cool.
I wondered if you could point me to a tutorial (preferably a video or a text with a decent amount of screenshots, so as to understand quicker) to get to know codeblocks quickly, without having to read the whole manual.
Also, I'm quite surprised that there is no auto completion. I thought it was one of the main advantages of IDEs. How to make it auto complete simple words such as #include{stdio.h} or printf ?
Finally, I played a little with it and noticed that there is auto indentation. That seems great. But how to get back to the same level as the last "}" as quickly as possible ? If I press the left arrow, it only goes back one blank instead of 4, so I have to press it 4 times. Any ohter quicker way ?
Similarly, is there or can I create a shortcut (such as ctrl+'{') that would write '{' and '}' and place the cursor in between ? (and, if '{' is at the beginning of a line, write '}' two lines beneath and place the cursor in between '{' and '}', with an auto indentation).
Same question for '[' and '('.
My questions have probably been answered a hundred of times, I'm sorry about that. I made a quick search but didn't find anything useful.
Thanks.
Denro:
hello hewbie,
now we are two newbies :D
i figured out that there is a kind of auto completition ....
go to settings>editor>abbrevitations
there you can enter a new item with a short name... then you can edit the code of this item
if you press OK its safed, then you go to the editor and type the name of this item and press controll + J
it will insert your code .... at the place where the | (pipe) in the "template" will be your cursor in the editor ;)
you will see that there also are some predefinied abbrevitations... you can customize them as you like them
also i think that you maybe are interested in a newer build ... they call it somehow nightly builds... as i got it you have to install the MinGW compiler seperatly at maybe c:\minGW\ ... then you download the lastest nighly build which you can find in this forum or on the wiki page
you extract the codeblocks folder and replace your old codeblocks folder with it...
the only thing you will miss is the docs folder in the original codeblocks folder so back it up if you need it ... also back up your localization file if you use such a translation
replace the codeblocks folder with the new one and put localization and docs back
at the end there is also a dll with you have to download and replace you will find it in the nighly build update informations
see here, they did help me yesterday: http://forums.codeblocks.org/index.php/topic,12002.0.html
i think in the newer codeblocks the autocompletitions is maybe better
i did install it yesterday and since then yomehow every time i press " it makes "|" or when i press ( it makes (|) and so on ... i my self would like to turn this off ... but i think its exactly what your searching for ;)
i think the best tutorial you can get on all this is if you just click on everything and spend some time in it .... i am also sure that you will not disapointet ;)
Seronis:
--- Quote from: Denro on February 11, 2010, 04:42:42 pm ---i think in the newer codeblocks the autocompletitions is maybe better
i did install it yesterday and since then yomehow every time i press " it makes "|" or when i press ( it makes (|) and so on ... i my self would like to turn this off ... but i think its exactly what your searching for ;)
--- End quote ---
That feature is a 'brace/bracket autocomplete' feature that was added a few months ago. I've grown to love it personally. The way it works is if you type an opening {, [, ( or quotation mark it will autoenter the closing mark after the cursor position. If you are on a new line the closing mark will be placed on the next line to attempt to conform to your bracket style.
--- Code: ---if( blah ) { | }
--- End code ---
--- Code: ---if( blah )
{
|
}
--- End code ---
I think what you're looking for the other question is in:
settings -> editor -> general settings -> tab options -> [check]Use tab character
If that is what you're referring to id suggest you also go through and set up the AStyle plugin to match your preferred indentation style. That can be set up at:
settings -> editor -> source formatter
kateausten:
Ok, I'll download the nightly build.
I've already removed codeblocks.
Now what do I have to do exactly to download gcc ? (please don't forward me to the codeblocks wiki, I've read the page but there's too much info there, I'm lost).
oBFusCATed:
Have you read this: http://forums.codeblocks.org/index.php/topic,3232.0.html ?
The easiest way to install gcc is to use the TDM package (this is the method I use on windows)
Navigation
[0] Message Index
[#] Next page
Go to full version