Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2008

Tip: Looking for answers? Try searching our database.

Matching brace in eclipse

Thread view: 
Orson - 23 Jun 2008 15:15 GMT
Is there way to go to matching brace in eclipse. You can go to
matching braket (Ctrl+shift+P), but not matching brace ('}'). This is
useful, but I found no way to do it.
RedGrittyBrick - 23 Jun 2008 16:00 GMT
> Is there way to go to matching brace in eclipse.

Yes.

> You can go to matching braket (Ctrl+shift+P),

True.

> but not matching brace ('}').

You can in any version of Eclipse I've used.

> This is useful, but I found no way to do it.

Position the cursor immediately *after* the brace. Eclipse then
highlights the matching brace (if on-screen) and Ctrl+Shift+P can be
used to jump to the matching brace.

Signature

RGB

Orson - 23 Jun 2008 21:26 GMT
On Jun 23, 11:00 am, RedGrittyBrick <RedGrittyBr...@SpamWeary.foo>
wrote:
> > Is there way to go to matching brace in eclipse.
>
[quoted text clipped - 16 lines]
> --
> RGB

Ah, yes, positioning the cursor works. This is good, but Ctrl+Shift+P
does not take me to the matching brace.

I am using Version: 3.3.2 Build id: M20080221-1800. Only plugins that
came with eclipse installed.

Can anyone tell me how I get that to work?
Lew - 24 Jun 2008 01:35 GMT
>>> Is there way to go to matching brace in eclipse.

RedGrittyBrick wrote:
>> Yes.

Orson:
>>> You can go to matching braket (Ctrl+shift+P),
>>> but not matching brace ('}').

RGB:
>> You can in any version of Eclipse I've used.
>>  ...
>> Position the cursor immediately *after* the brace. Eclipse then
>> highlights the matching brace (if on-screen) and Ctrl+Shift+P can be
>> used to jump to the matching brace.

> Ah, yes, positioning the cursor works. This is good, but Ctrl+Shift+P
> does not take me to the matching brace.
[quoted text clipped - 3 lines]
>
> Can anyone tell me how I get that to work?

As RedGrittyBrick said in their post, Ctrl-Shift-P works in every version of
Eclipse we've used.  I suspect it works there, too.

Signature

Lew

GArlington - 24 Jun 2008 11:05 GMT
> On Jun 23, 11:00 am, RedGrittyBrick <RedGrittyBr...@SpamWeary.foo>
> wrote:

<snap>

> > > You can go to matching braket (Ctrl+shift+P),

<snap>

> Can anyone tell me how I get that to work?

It (Ctrl+shift+P) works in Java perspective, might have alternative
mapping in your current perspective though...
voorth - 25 Jun 2008 12:56 GMT
> > > Is there way to go to matching brace in eclipse.

Double-clicking the position after the brace will select everything up
to the matching brace, and position the cursor at the end of the
selection.
This also works for parentheses and quotes.
Orson - 03 Jul 2008 21:13 GMT
> > > > Is there way to go to matching brace in eclipse.
>
> Double-clicking the position after the brace will select everything up
> to the matching brace, and position the cursor at the end of the
> selection.
> This also works for parentheses and quotes.

Yes, this work. It's a strange way to get it to work, but it worked. I
don't know what other are saying. Ctrl+shift+P just will not take me
to the matching brace.
Lew - 04 Jul 2008 04:14 GMT
> Yes, this work. It's a strange way to get it to work, but it worked. I
> don't know what other are saying. Ctrl+shift+P just will not take me
> to the matching brace.

And the others don't know what the deal is where you are.  Ctrl-Shift-P works
just fine for everyone else.

Signature

Lew

RedGrittyBrick - 04 Jul 2008 09:37 GMT
>>>>> Is there way to go to matching brace in eclipse.
>> Double-clicking the position after the brace will select everything up
[quoted text clipped - 5 lines]
> don't know what other are saying. Ctrl+shift+P just will not take me
> to the matching brace.

Other[s] are saying:
"Ctrl+Shift+P *will* take me to the matching brace".

Signature

RGB

Stanimir Stamenkov - 04 Jul 2008 10:48 GMT
Thu, 3 Jul 2008 13:13:00 -0700 (PDT), /Orson/:

> Ctrl+shift+P just will not take me
> to the matching brace.

Just check your configuration - have you changed any key bindings
(Window -> Preferences: General / Keys)?  Do you see the
Ctrl+Shift+P hint on the Navigate -> Go To -> Matching Bracket menu
item?  Check you have no other application which consume
Ctrl+Shift+P keystrokes globally, also.  You may further address
Eclipse specific questions in the Eclipse newsgroups
<http://www.eclipse.org/newsgroups>.

Signature

Stanimir

Patricia Shanahan - 04 Jul 2008 16:22 GMT
>>>>> Is there way to go to matching brace in eclipse.
>> Double-clicking the position after the brace will select everything up
[quoted text clipped - 5 lines]
> don't know what other are saying. Ctrl+shift+P just will not take me
> to the matching brace.

Ctrl+Shift+p certainly works for me, as for many others. I suggest
investigating your Eclipse configuration. Perhaps take it to an Eclipse
newsgroup?

Patricia


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.