This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes System.out.println with a key-combination in Eclipse 3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "System.out.println with a key-combination in Eclipse 3" Watch "System.out.println with a key-combination in Eclipse 3" New topic
Author

System.out.println with a key-combination in Eclipse 3

Javoso Torso
Ranch Hand

Joined: Aug 15, 2003
Posts: 88
Hello,

Can anyone tell me how can I insert
System.out.println
in the code with only a key-combination in Eclipse 3

Thanks!
Javo
[ August 01, 2004: Message edited by: Javoso Torso ]

I hate 'trial and error'<br />and I am doing it all the time
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

One way is "sysout Ctrl-/" -- i.e., there's a template named "sysout" and you can expand it with content assist.


[Jess in Action][AskingGoodQuestions]
Javoso Torso
Ranch Hand

Joined: Aug 15, 2003
Posts: 88
Thanks Ernest,

It is working

I was used, with JBuilder to only press Ctrl+j and o.
So two moves... pretty fast

This one is a bit longer: you have to type the whole word sysout!

Regards,
Javo
Javoso Torso
Ranch Hand

Joined: Aug 15, 2003
Posts: 88
ok, now I customized it a bit:

under

Window/Preferences and Java/Editor/Templates

I put the same sysout has under a new name oo. oo because with only one o, you have to work out a long list of options which use the o.

Now it is a bit faster
 
jQuery in Action, 2nd edition
 
subject: System.out.println with a key-combination in Eclipse 3