Author Topic: about automatic matching brace  (Read 3195 times)

xman

  • Guest
about automatic matching brace
« on: May 13, 2010, 08:21:19 am »
Hi guys,

is there anyway that c::B can automatically generate the matching } and ). I mean
when I type in ( then it's automatically (|) ,  with caret in the middle.
same with {}

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6035
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: about automatic matching brace
« Reply #1 on: May 13, 2010, 09:32:08 am »
Yes, it is already implemented. I guess you are using an old version of C::B.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.