Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Javoso Torso
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One way is "sysout Ctrl-/" -- i.e., there's a template named "sysout" and you can expand it with content assist.
 
Javoso Torso
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic