0% found this document useful (0 votes)
169 views8 pages

MYJAVACAFE - Shortcuts in MyEclipse PDF

The document provides a list of keyboard shortcuts for the MyEclipse IDE that allow developers to navigate and edit code more efficiently without using the mouse. Some highlighted shortcuts include CTRL+D to delete a row, ALT+Up/Down Arrow to move rows of code up and down while maintaining indentation, ALT+Left/Right Arrow to navigate between recently edited locations, and CTRL+1 to activate the quick fix feature at error locations. The document recommends using these shortcuts such as "Split variable declaration" and "Add unimplemented methods" to efficiently resolve issues like broadening variable scopes or implementing inherited methods.

Uploaded by

satish
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
169 views8 pages

MYJAVACAFE - Shortcuts in MyEclipse PDF

The document provides a list of keyboard shortcuts for the MyEclipse IDE that allow developers to navigate and edit code more efficiently without using the mouse. Some highlighted shortcuts include CTRL+D to delete a row, ALT+Up/Down Arrow to move rows of code up and down while maintaining indentation, ALT+Left/Right Arrow to navigate between recently edited locations, and CTRL+1 to activate the quick fix feature at error locations. The document recommends using these shortcuts such as "Split variable declaration" and "Add unimplemented methods" to efficiently resolve issues like broadening variable scopes or implementing inherited methods.

Uploaded by

satish
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

HOME CORE JAVA SERVLETS JSP WEB SERVICES STRUTS SPRING HIBERNATE SQL

REALTIME SCENARIOS OTHER TECH'S HTML JAVA SCRIPT XML OTHER DOWNLOADS

July 02, 2010 Follow by Email

Shortcuts in MyEclipse Email address... Submit

You should try to keep your hands on keyboard. The less you touch the mouse, the
more code you can write. I am trying to keep the mouse laying still and control the
IDE completely using keyboard. What do you think is faster: pressing ALT + C or
right clicking the project, selecting Team -> Commit? Blog Archive

Blog Archive
It is said, that if a function does not have a key binding, it is useless. Below you will
find a set of essential keyboard shortcuts that I love. These shortcuts are set up by
default, they should all work
.
CTRL + D
Delete row. Try it! You no more need to grab the mouse and select the line, no more
Home, Shift + End, Delete. Quick and clean.

ALT + Up/Down Arrow


Move the row (or the entire selection) up or down. Very useful when rearranging
Followers
code. You can even select more rows and move them all. Notice, that it will be always
correctly indented. Join this site
w ith Google Friend Connect

Members (26) More »

Already a member? Sign in

ALT + Left/Right Arrow


Popular Post s
Move to the last location you edited. Imagine you just created a class Foo, and now
you are working on a class Boo. Now, if you need to look at the Foo class, just press
Calling one jsp from another jsp
Alt+Left Arrow. Alt+Right Arrow brings you back to Boo. The above question is just like calling
a method() in the java/c++/c classes.
CTRL+SHIFT+O It will call the method() and after
completion of method execu...
Organize imports. What happens when you first use a class you have not yet
imported? You will see an error. But when you press this magical combination, all Java Interview Questions ( Delivered
your missing classes will be imported, and the unused imports will vanish. by Nageswara rao from Inetsolv
Institute of Hyderabad)
CTRL+1 1) Why pointers are eliminated from
java? Ans) 1.Pointers lead to
Probably the most useful one. It activates the quick fix. Imagine you create a class, confusion for a programmer. 2.
which implements some interface. You will get an error, because the inherited Pointers may crash a program easily,
for ...
methods are not yet implemented. While you are on line where the error occurs, press
First and Second Level caching in
this combination to activate the quick fix. Now, select the "Add unimplemented
Hibernate ?
methods" option. You can use the quick fix at every error you ever receive. 1). First level cache The sometimes
Quick fix comes handy in other situations too. My favorite is the "Split variable so called "first level cache" is also
declaration". Sometimes I need to broaden the scope of a variable. I activate the quick known as the Session object, that you
retrieve from ...
fix, split declaration, and use alt + arrow to put it where it belongs. You can find even
more usages: Convert local variable to field, rename in file, Inline local variable.. Java IDEs – NetBeans vs Eclipse vs
JDeveloper
I have been a NetBeans and
JDeveloper user for many years. I
have used Eclipse on and off but
can’t say that I have ever adopted
Eclipse as ...

Shortcuts in MyEclipse
You should try to keep your hands
You could use the "Split variable declaration" on the bar variable, and then move it on keyboard. The less you touch the
mouse, the more code you can write.
with Alt+Arrows above the try block.. I am trying to keep the mouse la...

How to export data to CSV file ) Java


CSV is stand for Comma-separated
values , CSV is a delimited data
Or you could use the "Add unimplemented methods" fix here. format that has fields/columns
separated by the comma character
The best thing you can do if you see an error is to use the quick fix.
and rec...

CTRL+SHIFT+T Exception Classes and Exception


Open Type. Imagine, that you need to have a look at the Foo class. But, where is the Hierarchy
Foo class? Is it in the Boo project and in the foo.bar package? Or somewhere else? The hierarchy of exception classes
commence from Throwable class
With this shortcut, you don't need to know. Just press it, type Foo and you are in. which is the base class for an entire
family of exception classes, declar...

Difference between System.exit(0)


and System.exit(1)
System.exit(n) terminates the
process and sets the process exit
code to 'n' . The significance of the
value of 'n' depends o...

Web Service. IWAB0506E Error


when copying Axis jar files to web
project.
IWAB0506E Error when copying
Axis jar files to web project
java.io.FileNotFoundException:
/lib/saaj.jar at
org.eclipse.osgi.framework.inte...

Labels
CTRL+E
Shows you a list of all open editors. realtime (126) corejava
(96) other2 (28) jsp (17) servlets
(17) sql (15) struts (9) hibernate (6)
spring (6) lab (5 ) webserv ic es (5 ) ds (4)
ejb (3) h t m l (1 ) x m l (1 )

Search

CTRL+F6
Use to move between open editors. This is an slower alternative to Ctrl + E. Comes
handy in a situation when you want to periodically switch between two editors,
something, what is nearly impossible with Ctrl+E as it sorts entries quite randomly.
Or you might just use Alt+Arrows..

CTRL+F7
Move between views. When in editor, press Ctrl+F7 to switch to the Package
Explorer, or hold Ctrl and press F7 multiple times to switch to other views.
CTRL+F8
Move between perspectives. The same as previous.

Core Java Jdbc, Servlets, And


Jsp Black...
List Price: Rs.529
Our Price: Rs.396 List Price: Rs.549
Our Price: Rs.429

CTRL + F11
Runs the application. What gets launched depends on your settings. It will either
launch the last launched class (my preffered way) or it will launch currently selected
resource (the default way). If you want to change its behavior read the previous post.

CTL + N
Open new type wizard. This is not very quick because you have to select the wizard MY JAVACAFE
type (weather you want to create new class, jsp, xml or something else) in the next
Mockito Junit - Servlet Code
step. Much faster way would be if you could just hit the shortcut and invoke the Example
particular wizard. It is possible, just keep reading.. Mockito Junit - Hibernate Code
Example
CTRL + M Mockito Junit Code Examples
Maximize or umaximize current tab. User defined or customized
unchecked and checked exceptions
CTRL + I in java
Corrects indentation. Spring Briefly

CTRL + SHIFT + F
Formats code. You can make a beautiful looking code out of a mess with this. It
requires a bit of setup, but it is well worth it. You can find its settings under Window-
>Preferences->Java->Code style->Formatter

CTRL + J
Incremental search. Similar to the search in firefox. It shows you results as you type.
Don't be surprised, if you hit this combination, nothing happens - at the first glance.
Just start typing and eclipse will move your cursor to the first ocurence.

CTRL + SHIFT + L
Shows you a list of your currently defined shortcut keys.
I don't like your shortcuts
Such is life nowadays. Remember, you can always change those bindings to match
your preferences. Open Windows->Preferences->General->Keys. Now you can use
the filter to find your shortcut and change its binding.
The real fun begins when you cannot find the command you are looking for. The key
here, is to have the "Include unbounds commands" checkbox checked. It will show
you all commands, even those, which have no keys bound.

While you are here, I recommend to add the following bindings:


CTRL+SHIFT+G
Bind this to "Generate getters and setters". This is a "must have".

ALT+C
Bind this to SVN/CVS "Commit".

ALT+U
Bind this to SVN/CVS "Update".

Now, type "new" (without quotes) in the filter text. You should see a list of all new
type wizards. Choose the most frequently used and assign them a shortcut. For
example, the most used wizard for me is the new class wizard. Thus I assigned it the
CTRL+SHIFT+N keys.

Let me demonstrate a quick way to create new class now.

Hit CTRL + SHIFT + N (or the combination you assigned in the previous step).
This should bring up new class wizard. Type in the name and press ALT+E. You can
now select a class which will be a superclass for the newly created class. Hit ALT+A
and select all implemented interfaces . Now hit ALT+F and your class will be
generated. Eclipse will also provide the default implementation for all abstract and
interface methods you inherited.

Did you notice the weird underscores everywhere in the dialog? They give you a hint
about the shortcut key. Hit ALT and the underlined letter to press the button, check
the checkbox or get focus for a textfield.

Recommend this on Google


Asus Zenfone 4
A400CG
List Price: Rs.6499
Our Price: Rs.5499
7 comments

Add a comment

Top comments

kiranam786 1 year ago


nice shortcut keys....... these are useful to me.. thank you!

1 year ago
Yοu are so cool! I ԁo not thinκ I've read through a single thing like that before.
So good to find someone with some genuine thoughts on this subject
matter. Really.. many thanks for starting this up. This site is one thing that is
needed on the web, someone with some originality! My weblog - <a
href="http://imenik.zapomni.si/user.php?login=bettyedmb"
rel="nofollow">http://ratsaspet.com/category/rats-as-pets/</a>

1 year ago
Thanκs fоr anοthеr infoгmаtivе site. Where else could I get thаt tуpе of infο
ωrіtten in suсh a ρerfect waу? Ι've a undertaking that I'm just now operating
on, аnd I hаѵe been at the glancе out for such info. Feel frеe to visit my
weblog: <a href="http://org.ntnu.no/frodetomgroup/wiki/index.php?
title=User:Cynthiauo" rel="nofollow">Suggested Webpage</a>

1 year ago
Hі therе I am so glad I founԁ your blog page, І reallу found yοu bу accіdent,
while I was lookіng on Aol for something elsе, Anyways I am hеre now and
wоuld just like tο saу many thanks foг a fantastic pоѕt and a all round
enjoyable blog (I also loѵe the theme/design), I don't have time to look over it
all
Readat the
moreminute but I have book-marked it and also added in your RSS feeds,
so when I have time I will be back to read a great deal more, Please do keep
up the fantastic work. Also visit my blog post <a
href="http://pointpaulista.com.br/node/3510931" rel="nofollow">keep
reading</a>
1 year ago
Hi to еveгy one, it's in fact a good for me to visit this site, it consists of
helpful Information. Feel free to visit my web-site; <a
href="http://www.sofoca.cl/jbrown/testmw/index.php?
title=User:PenniOcho" rel="nofollow">http://www.sofoca.cl/</a>

1 year ago
I was recommenԁеd this blog by my cousin. I am nоt ѕure whethеr thіѕ ρoѕt
іs wгitten by him as nobody еlsе know such detaіled аbout my problem.
Υou're incredible! Thanks! Feel free to surf to my blog - <a
href="http://mla.mrooms.org/user/view.php?id=43537&course=1"
rel="nofollow">http://howtoplaytheflute.org/about/</a>

psn 3 years ago


It is very useful for everyone who are working with eclipse and my eclipse
especially for biggeners and who are working with fake experience.
Newer Post Home Older Post

Subscribe to: Post Comments (Atom)

My Favorit e Sit e's List

Wattpad
Watty s 2014 Now Liv e - The Watty s return for a fifth y ear to celebrate y our
fav orite, up and coming, and new stories. This y ear we hav e reinv ented the
Watty s with a brand new sel...
1 6 hours ago

Java Code Geeks


Jav a EE 7 Batch Processing and World of Warcraft – Part 1 - This was one of my
sessions at the last Jav aOne. This post is going to expand the subject and look
into a real application using the Batch JSR-352 API. T...
1 7 hours ago

IT eBooks
Cocos2d-x Game Dev elopment Essentials : Create iOS and Android games from
scratch using Cocos2d-x - [image: Cocos2d-x Game Dev elopment Essentials]
Cocos2d-x is the C++ port of the most popular open source 2D framework in
the world. Cocos2d-x is an amazin...
2 days ago

Small Review
Mini Rev iew: The Wars of the Roses by Dan Jones - Release Date:
October 14, 2014 Pages: 416 Receiv ed: Finished copy and ARC
from publisher v ia NetGalley Rating: 4 out of 5 stars, Special
Shelf *Goodread...

3 days ago

Javarevisited
How to Use Locks in Multi-threaded Jav a Program - Many Jav a
programmers confused themselv es like hell while writing multi-
threaded Jav a programs e.g. where to sy nchronized? Which Lock
to use? What Lock to ...

3 days ago

JavaWorld
Learning a
second
programming
language? Try
these 5 sites -
Dev elopers
try ing to jump
from one
language to
another often
hit the same
wall: How do I
do *this*? They
can do it in
their base
language, but
introduce...
4 days ago

JAVAbyNAT ARAJ
Hibernate notes by Sekhar sir from Naresh i Technologies - Hibernate notes
(material) by Mr.Sekhar sir is giv en in PDF file format to
download. I hav e giv en many pdf materials of Sekhar sir like
Spring , WebServ ice...

1 w eek ago

T hinkT ibits!
POI Hide UnHide Rows Columns Jav a Example - In this tutorial, we will
discuss how to hide / unhide rows / columns in an Excel worksheet using
Apache POI, with suitable Jav a Examples.We will cov er the...
3 w eeks ago

MYJAVACAFE
Mockito Junit - Serv let Code Example - Mockito Junit Serv let
example source code attached here. Please download required
jars download from findJar site. If y ou want work with much
more examples...

2 months ago

Java tutorial for beginners


Binary tree in jav a - A binary tree is a tree data structure in
which each node has at most two children, which are referred to
as the left child and the right child Example of ...

2 months ago

JavaBeat
JQuery getScript Example - Connect to us ( @twitter | @facebook ) The jQuery
getScript() method loads and executes the Jav aScript file from remote
location using HTTP GET request, ...
2 months ago

ViralPatel.net
Getting Started With Y eoman (Introduction to Y eoman) - Y eoman is a Node
module to automate y our front-end project build process, so that all we as a
dev eloper only need to worry about is to code and test. Thi...
3 months ago

Spice Up Your Blog


Top 6 Habits of Professional Writers and Bloggers - [image:
Habits of Professional Bloggers] After being a professional writer
for some time, y ou start to dev elop certain productiv e habits.
These habits make ...

3 months ago

QuicklyJava
Adding Image to PDF in Jav a Using Itext - In this tutorial we will be adding
image to PDF in Jav a using itext. We will be adding images using 2 different
scenarios: 1) Add an online image accessi...
5 months ago

Death By Code
Jav a SE 8 for the Really Impatient : Exercises - I hav e recently started learning
the Jav a 8 feature : Lambda. I am going through the book Jav a SE 8 for the
Really Impatient by Cay S. Horstmann. It's fun ...
8 months ago

T he Full Feed from HuffingtonPost.com


Simply Three Makes 'The Christmas Song' Both Modern And Classical (VIDEO) -
It's not unexpected that we get a multitude of submissions sent in to us here at
The Huffington Post. What *is* unexpected, howev er, is this submission a...
1 0 months ago

Java Experiences
OSGi - Road Ahead - OSGi has been introduced many times in the past few
y ears and will still require some in the future1. With so many introductions,
one might be inclined to ...
1 1 months ago

OracleBlog
The Two Way s of Doing a Job - Whether it's deploy ment, dev elopment,
performance tuning, troubleshooting or something else, there are two
fundamentally different way s of doing y our job: do...
2 years ago

Our Blogger T emplates


Blogger Templates: Shush - Shush is a minimalist and extremely
flexible template with flexible multiple columns (2 or 5
columns). Y ou can change the columns, all background and font
...

4 years ago

Google Blogger
Google Map with Markers in Blog. -

5 years ago
T hank you for choosing Edraw Max
-

Quackit
-

Struts 2 Hibernate 3 Integration Example with Spring 3 | DAV


JavaServices | Dinesh on Java
-

Notes on Mockito T utorial


-

Metro UI CSS : Metro Bootstrap CSS Library


-

Vskills Practice T est


-

WebSequenceDiagrams.com - Draw and Edit Sequence Diagrams


in seconds
-

O'Reilly's CD bookshelf
-

Difference between subjects | technologies


-

Online Assessments Software for Recruitment, T raining,


Contests, Exams, T est Preparation
-

Java2Share
-

Java Programming Questions and Answers


-

Step by Step Online IT T raining


-

Code Examples
-

T echOnT heNet
-

Learn MS Excel Online, Office & Word - Free-training-


tutorial.com
-

MYJAVACAFE@2014. Template images by luoman. Powered by Blogger.

#update below script more than 500 posts

You might also like