wood burning stoves 2.0*
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: eclipse shortcut for System.out.println("");
 
Similar Threads
Eclipse shortcut keys
Changing the shortcut keys in IntelliJ
RCP shortcut keys! Pls HELP!
How to change the default icon of a shortcut file on Mac using Java
Compile error with ANT in eclipse...