Topic: Finding a squiggly bracket's mate in a Borland IDE window?


Author: "G nter Nagler" <gnagler@ihm.tu-graz.ac.at>
Date: 6 Mar 1995 09:27:01 GMT
Raw View
> In LISP editors I've used, double clicking on a parentheses (the counterpart
> of C's squiggly brackets) in my code can select a whole expression up to
> the mate parentheses of the one I clicked on.  Is there an equivalent
> operation in Borland IDE?  I found a reference in the Borland documentation
> to some command called "pair matching" involving the control Q key, but I
> can't seem to observe anything happening with it and I don't know if that's
> what I even want anyway?  This is Borland 3.1 if that matters.
> Enlightenment please?  Thanks,
> Cris Johnson
> Alameda, CA
> cdj@netcom.com
I position the cursor to any of the parentheses (){}[]
and use the key sequences ctrl-Q [  or ctrl-Q ]
It does not work if there is no matching pair.

guenter nagler





Author: jwendt@kosepc02.delcoelect.com (John Wendt)
Date: 6 Mar 1995 16:03:05 GMT
Raw View
In <cdjD4vp9C.3t3@netcom.com>, cdj@netcom.com (Cris Johnson) writes:
>In LISP editors I've used, double clicking on a parentheses (the counterpart
>of C's squiggly brackets) in my code can select a whole expression up to
>the mate parentheses of the one I clicked on.  Is there an equivalent
>operation in Borland IDE?  <snip>

Put the cursor on a brace, press ctl-Q then [ or ], and the cursor will go
to the matching brace, if there is one.

(Not to restart a war, or anything like that :-) but the brace style

void p()
{
   {
   }
}

makes this much less necessary IMHO.)

==============================================================================
John M. Wendt                            |  "Ah, but that is clearly a meta-
Software Engineer                        |  physical speculation, and, like
Service Test Equipment Engineering       |  most metaphysical speculations,
Delco Electronics Corp., Kokomo IN, USA  |  has very little reference at all
                                         |  to the actual facts of real life
(Standard Disclaimers Apply)             |  as we know them." -- Gwendolyn,
                                         |  in "The Importance of Being Earnest"





Author: cdj@netcom.com (Cris Johnson)
Date: Fri, 3 Mar 1995 19:10:24 GMT
Raw View
In LISP editors I've used, double clicking on a parentheses (the counterpart
of C's squiggly brackets) in my code can select a whole expression up to
the mate parentheses of the one I clicked on.  Is there an equivalent
operation in Borland IDE?  I found a reference in the Borland documentation
to some command called "pair matching" involving the control Q key, but I
can't seem to observe anything happening with it and I don't know if that's
what I even want anyway?  This is Borland 3.1 if that matters.
Enlightenment please?  Thanks,
Cris Johnson
Alameda, CA
cdj@netcom.com