Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » matching brace/bracket in C++ editor
matching brace/bracket in C++ editor [message #146050] Wed, 25 May 2005 19:46 Go to next message
Eclipse UserFriend
Originally posted by: vkdev.hotmail.com

In the CDT C++ editor how do you move the cursor to the matching
brace/bracket/parenthesis as the one that the cursor is currently on??

In the java editor, this can be accomplished by pressing Ctrl-Shift-P.
But I cannot figure out *anywhere* how to do this in the CDT C++ editor!

Thanks!
Re: matching brace/bracket in C++ editor [message #146085 is a reply to message #146050] Thu, 26 May 2005 08:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pgodeau.sapex-alma.nospam.com

vkdev a écrit :
> In the CDT C++ editor how do you move the cursor to the matching
> brace/bracket/parenthesis as the one that the cursor is currently on??
>
> In the java editor, this can be accomplished by pressing Ctrl-Shift-P.
> But I cannot figure out *anywhere* how to do this in the CDT C++ editor!

You can't :-(
It seems incredible, but I asked the same question last week in this
mailing, and no reply. So I filed this bug report:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=96749
Re: matching brace/bracket in C++ editor [message #146102 is a reply to message #146085] Thu, 26 May 2005 09:07 Go to previous messageGo to next message
Cavit Cahit VURAL is currently offline Cavit Cahit VURALFriend
Messages: 76
Registered: July 2009
Member
Patrick Godeau wrote:
> vkdev a écrit :
>
>>In the CDT C++ editor how do you move the cursor to the matching
>>brace/bracket/parenthesis as the one that the cursor is currently on??

In CDT (Eclipse 3.1M7, CDT I200505230301 it does it automatically

CC Vural
Re: matching brace/bracket in C++ editor [message #146449 is a reply to message #146102] Thu, 02 June 2005 11:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: houlixin001.sohu.com

I think you need to setup a shortcut key.
(Tested In CDT 3.1M6)

enter into preference->Keys->Modify page

the command is C/C++ Source->Goto Matching Bracket

Assign a key to it!

Enjoy!
Re: matching brace/bracket in C++ editor [message #146462 is a reply to message #146449] Thu, 02 June 2005 12:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jason.wisnieski+eclipse.gmail.com

In CDT 2.1.1 on Eclipse 3.0.2, this isn't an option - what release of CDT
are you running?

I'm hopeful that this is a new or mistakenly dropped feature, because it's
driving me bonkers. In the meantime, a workaround:
Double-clicking a bracket highlights a block of text and moves the cursor
to the bottom. It's one-way, but it works in a pinch.

horace wrote:
> I think you need to setup a shortcut key.
> (Tested In CDT 3.1M6)
> enter into preference->Keys->Modify page
> the command is C/C++ Source->Goto Matching Bracket
> Assign a key to it!
> Enjoy!
Re: matching brace/bracket in C++ editor [message #146474 is a reply to message #146462] Thu, 02 June 2005 13:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jason.wisnieski+eclipse.gmail.com

Ah, apologies. I'd searched all over the downloads page and saw that the
lastest release of CDT is 2.1.1. I hadn't seen the 3.0 build page, on
which the milestone release is listed. I'll try that out, then.
Re: matching brace/bracket in C++ editor [message #146928 is a reply to message #146050] Sun, 19 June 2005 20:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: briyenga.gmail.com

so did any one figure out how to do this? will be a real nuisance without
this.

thanks,
-balaji
Re: matching brace/bracket in C++ editor [message #146934 is a reply to message #146928] Sun, 19 June 2005 21:16 Go to previous message
Eclipse UserFriend
Originally posted by: briyenga.gmail.com

looks like eclipse 3.1 with CDT 3.0 does this with ctrl+shift+p.

thanks.
Previous Topic:basis navigation question
Next Topic:Conflicting names
Goto Forum:
  


Current Time: Fri Nov 08 22:30:48 GMT 2024

Powered by FUDForum. Page generated in 0.04135 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top