Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

synonyms of `sout + Tab` shortcut in IntelliJ IDE for MyEclipse

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?

like image 226
Sam Avatar asked Feb 28 '12 09:02

Sam


People also ask

Why Sout is not working in IntelliJ?

Settings/Preferences -> Editor -> Live Templates. Find out the "sout" shortcut and put "System. out. println();" in the expands to section.

How do I use Eclipse shortcuts in IntelliJ?

Shortcut to use Eclipse shortcuts in IntelliJ Idea: Press ctrl+`(also have tilde~ on it, button at the left side of digit 1). Then press 3 (Keymap) and select 2 (Eclipse). Done!

How do I make system out Println shorter?

println statement in your Java file, you can use the following Eclipse shortcut keys. Just type "sysout" in your Java editor and press Ctrl + space, which triggers code completion. This will expand sysout into System.


2 Answers

In Eclipse you can type the following (so I guess MyEclipse does the same):

Sysout + CTRL-SPACE
like image 175
Guillaume Polet Avatar answered Sep 23 '22 02:09

Guillaume Polet


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

like image 40
Simon Baslé Avatar answered Sep 27 '22 02:09

Simon Baslé