User forums > Using Code::Blocks

How can I get auto close bracket/inverted commas?

(1/3) > >>

gcampton:
Hello,
This is a standard function of most text editors, that code-blocks and another ms product that shall remain unnamed don't seem to come with as standard...

I thought the long awaited jump from text editor(VI) to IDE would be a painful process and hence I put it off for a little over 7months. Anyway, back to the topic, I can't seem to find where to enable this, I tried making a autocompletion (ctrl +J) function called by pressing {{ and ctrl J, this didn't work.

can anyone please shed some light on how I can get automatic closing brackets and/or inverted commas ?

ollydbg:
Sorry, I can't fully understand your question.
Did you want to jump from the open brace to close brace?? just use CTRL+SHIFT+B. :D

Jenna:
It would be really helpful to know which version of C::B you use and which os (and version) you use.

gcampton:
CB 8.02 windows 7.

on a large number of text editors when you open a new brace '{' bracket '(' '[' an enclosing one is put directly after the cursor. or in case of the curly brace is put 2 lines below and the cursor jumps the to the next line with -> 1 indent. less frequent editors also have this inclusion for inverted commas. so when you type one, a second one(closing comma) is placed directly after the cursor.

eg _ = cursor

--- Code: ---// i type {
{
   _     
}

// i type (
int main(_)

// i type [
int [_]

// i type "
string str1="_"

--- End code ---

Jenna:
You should use a recent nighly build, both features are implement in the meantime.

Navigation

[0] Message Index

[#] Next page

Go to full version