-1

I started to learn Java in my computer science studies, and I need a lot to use printing methods System.out.print();, System.out.println();, and System.out.printf();, I searched in Google and I didn't find the right answer maybe cause I don't know how to ask it. Anyway, I'm looking for a way to set up some ready codes to appear when I write a certain keyword and hit tab like in Sublime text in HTML we can just write "lorem" and press Tab and it will display the Lorem Ipsum paragraph. Thank you for your help guys

2
  • Are you looking for "Code Recommenders" in eclipse?
    – geocodezip
    Commented Nov 10, 2020 at 16:20
  • I think that you're looking for the feature called Snippets. As Vyom Yadav mentioned, there is a built-in snippet for sysout that completes to System.out.println. Commented Nov 10, 2020 at 16:35

2 Answers 2

0

They're called Templates, and are activated as part of content assist with Ctrl+Space. You'll find the page for them in your Preferences under Java->Editor->Templates.

1
  • Thank you so much <3 Commented Nov 10, 2020 at 18:02
0

Write sysout and then press Ctrl + spacebar System.out.println(); will be printed

1
  • Thank you bro that's so useful Commented Nov 10, 2020 at 18:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.