I using sout + Tab
shortcut in IntelliJ IDEA for System.out.println();
statement.
I want know if there are any synonyms of above shortcut in MyEclipse?
Asked
Active
Viewed 9,804 times
5
-
1I guess this could be useful http://stackoverflow.com/questions/1028858/useful-eclipse-java-code-templates – DRCB Feb 28 '12 at 09:05
-
2*holywar* Do not use Eclipse, use IntelliJ =) – Andrew Logvinov Feb 28 '12 at 09:09
-
@DRCB You are right. I found my answer in your suggestion page. If you will write your comment as answer I vote-up it,and accept it as answer. Thanks – Sam Feb 28 '12 at 09:14
-
@AndrewLogvinov This is a solution also ;) – Sam Feb 28 '12 at 09:15
2 Answers
6
In Eclipse you can type the following (so I guess MyEclipse does the same):
Sysout + CTRL-SPACE

Guillaume Polet
- 47,259
- 4
- 83
- 117
-
2
-
Yeah, correct. And if you want to have the same as IntelliJ, you can add/edit the Java templates in Eclipse preferences. – Guillaume Polet Feb 28 '12 at 09:13
2
Actually you can do something similar in Eclipse (even with slightly less letters to type):
syso + CTRL-SPACE == System.out.println();
syse + CTRL-SPACE == System.err.println();
Those are part of the many predefined templates found in Window > Preferences, Java | Editor | Templates

Simon Baslé
- 27,105
- 5
- 69
- 70