Pelles C forum

Pelles C => Feature requests => Topic started by: adjohnson on May 25, 2005, 06:25:11 AM

Title: Matching brace command
Post by: adjohnson on May 25, 2005, 06:25:11 AM
Hi,

Thanks for the incredibly cool and useful program.

Is there a brace matching command? This command searches forward in the file from the cursor position to find an open or close brace.  If an open brace is found, the search continues in a forward direction until a matching close brace is found at the same nest level.  If the first brace found is a close brace, the search is performed in the reverse direction until a matching open brace is found at the same nest level.

Andrew
Title: Re: Matching brace command
Post by: Pelle on May 25, 2005, 06:42:55 PM
Quote from: "adjohnson"
Thanks for the incredibly cool and useful program.

Thanks! :-)

Quote from: "adjohnson"

Is there a brace matching command?

Well... maybe not exactly as you describe. If the cursor is on a {, (, [, you can press F12 to find the matching ], ), }. The search is not perfect - it will find these characters in strings too, for example. It works most of the time, though...

Pelle
Title: Brace matching
Post by: adjohnson on May 26, 2005, 09:18:46 AM
=D> Thanks, that's what I needed to know.

Andrew