find corresponding parenthesis / bracket

General questions regarding the usage of CodeLite
HJarausch
CodeLite Veteran
Posts: 98
Joined: Thu Feb 18, 2010 10:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

find corresponding parenthesis / bracket

Post 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.
nemesis
CodeLite Enthusiast
Posts: 37
Joined: Fri Oct 01, 2010 8:32 pm
Genuine User: Yes
IDE Question: all
Contact:

Re: find corresponding parenthesis / bracket

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: find corresponding parenthesis / bracket

Post 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
Make sure you have read the HOW TO POST thread
HJarausch
CodeLite Veteran
Posts: 98
Joined: Thu Feb 18, 2010 10:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: find corresponding parenthesis / bracket

Post by HJarausch »

Thanks to Eran and Nem,

Helmut.
HJarausch
CodeLite Veteran
Posts: 98
Joined: Thu Feb 18, 2010 10:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: find corresponding parenthesis / bracket

Post 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.
nemesis
CodeLite Enthusiast
Posts: 37
Joined: Fri Oct 01, 2010 8:32 pm
Genuine User: Yes
IDE Question: all
Contact:

Re: find corresponding parenthesis / bracket

Post 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
Post Reply