Page 1 of 1

find corresponding parenthesis / bracket

Posted: Wed Oct 06, 2010 10:46 am
by HJarausch
Hi,

is there a means in the editor to find a corresponding parenthesis or bracket.
Currently the parenthesis-pair or bracket-pair is highlighted in green.
But if the closing/opening parenthesis (bracket) is not visible on the screen it would be
nice if one could find (goto) the corresponding parenthesis (bracket).
Is this feature available already?

Thanks for a hint,
Helmut.

Re: find corresponding parenthesis / bracket

Posted: Wed Oct 06, 2010 11:15 am
by nemesis
hi there!

at least what i know for indentation (i.e. function brackets) there is a 'guideline'. http://codelite.org/forum/viewtopic.php?f=11&t=289
i guess that are the most cases for 'second bracket out of screen'.

greets,
nem

Re: find corresponding parenthesis / bracket

Posted: Wed Oct 06, 2010 11:30 am
by eranif
Use:
Ctrl-]

to jump between the two.

(from the menu: Edit -> Match Brace)

Also, you can change the marking selection of the matched braces from:
settings -> syntax highlight and font -> C++
and search for the 'style': Brace Match / Brace Bad Match

Eran

Re: find corresponding parenthesis / bracket

Posted: Wed Oct 06, 2010 7:08 pm
by HJarausch
Thanks to Eran and Nem,

Helmut.

Re: find corresponding parenthesis / bracket

Posted: Wed Oct 06, 2010 7:09 pm
by HJarausch
nemesis wrote:hi there!

at least what i know for indentation (i.e. function brackets) there is a 'guideline'. http://codelite.org/forum/viewtopic.php?f=11&t=289
i guess that are the most cases for 'second bracket out of screen'.
Hi, is there also a block (selection) indent / dedent feature?

Thanks,
Helmut.

Re: find corresponding parenthesis / bracket

Posted: Wed Oct 06, 2010 8:09 pm
by nemesis
yes there is. selection -> tab (indent) or shift+tab (dedent)
as pointed out here http://codelite.org/forum/viewtopic.php?f=11&t=863

greets,
nem