This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes eclipse shortcut for System.out.println( Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "eclipse shortcut for System.out.println("");" Watch "eclipse shortcut for System.out.println("");" New topic
Author

eclipse shortcut for System.out.println("");

satish pune
Ranch Hand

Joined: Sep 04, 2003
Posts: 44
Hello ,
I am using Eclipse 3.0.0 and am relatively new at using Eclipse
I have used JBuilder and have come to like the ability to
add System.out.println(""); - by just using a Keyboard shortcut - Ctrl + J

However - I have not been able to figure out how to go about the same in Eclipse

Its quite irritating to everytime write the same thing again !

Thanks ,
-satish
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
You can add macros like that to Eclipse as well, plus it comes equipped with a decent set of them as standard.
I must admit I hardly ever use them, too lazy to learn them all


42
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30595
    
154

Satish,
Type sysout and then press ctrl-space. The shortcut changed in one of the versions of Eclipse. You can check which one yours uses by going to Windows --> Preferences --> Editor --> Templates.

This is also the place to change the name of templates or create your own.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Arun Prasath
Ranch Hand

Joined: Sep 17, 2003
Posts: 192
Originally posted by Jeanne Boyarsky:
Satish,
Type sysout and then press ctrl-space. The shortcut changed in one of the versions of Eclipse. You can check which one yours uses by going to Windows --> Preferences --> Editor --> Templates.

This is also the place to change the name of templates or create your own.


Thanks Jeanne for this tip. though I have been using eclipse, I never knew of these templates. Good learning!!
satish pune
Ranch Hand

Joined: Sep 04, 2003
Posts: 44
Thanks Jeanne - that was helpful !

-satish
 
GeeCON Prague 2014
 
subject: eclipse shortcut for System.out.println("");