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 2007

Tip: Looking for answers? Try searching our database.

Match Brace in Eclipse

Thread view: 
moleskyca1@yahoo.com - 06 Jul 2007 14:30 GMT
Sorry other question whcih I forgot to ask:

Do you know how to go to the matching brace (or parenthesis, etc...)?
Or recording and replay macro (for example, if you need simple editing
done on many lines, but don't want to type for each one, you know
automate it)?
When I open a .bat file, it wants to run it, how can I tell eclipse
that I want to edit file, not run it. Thank you
Thomas Fritsch - 06 Jul 2007 14:49 GMT
> When I open a .bat file, it wants to run it,
I assume you double-clicked onto the .bat file. Don't do!
> how can I tell eclipse
> that I want to edit file, not run it.
Right-click onto the .bat file. Then, in the popup-menu select "Open with -
Text Editor".

Signature

Thomas

Manish Pandit - 06 Jul 2007 15:21 GMT
On Jul 6, 6:30 am, molesky...@yahoo.com wrote:
> Sorry other question whcih I forgot to ask:
>
[quoted text clipped - 4 lines]
> When I open a .bat file, it wants to run it, how can I tell eclipse
> that I want to edit file, not run it. Thank you

Batch file association:

Window/Preferences/General/Editors/File Associations
Look for *.bat
Look for Associated Editors in the bottom pane
Add/Remove/Edit editors (you can select 'Text Editor' so that batch
files will not execute).

Matching Brace:

Not sure how to get to the matching brace, but you can select a block
between braces if that is your goal. You can double click right after
the brace and it will block select the area between that and the
corresponding closing brace.

-cheers,
Manish
heysc0tt@gmail.com - 06 Jul 2007 17:20 GMT
On Jul 6, 6:30 am, molesky...@yahoo.com wrote:
> Sorry other question whcih I forgot to ask:
>
[quoted text clipped - 4 lines]
> When I open a .bat file, it wants to run it, how can I tell eclipse
> that I want to edit file, not run it. Thank you

Go to Matching Bracket -> Ctrl+Shift+P

This page may be helpful:
http://eclipse-tools.sourceforge.net/Keyboard_shortcuts_(3.0).pdf
moleskyca1@yahoo.com - 25 Jul 2007 14:00 GMT
On Jul 6, 12:20 pm, heysc...@gmail.com wrote:
> On Jul 6, 6:30 am, molesky...@yahoo.com wrote:
>
[quoted text clipped - 10 lines]
>
> This page may be helpful:http://eclipse-tools.sourceforge.net/Keyboard_shortcuts_(3.0).pdf

Thank you. I tried Ctrl+Shift+P but eclipse didnt go to matching
braket. It keeps saying: No matching bracket found. I tried on first
brace on this code and on first braket:

public class test {
test() { int a[] = new int[3]; }
}


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.