3

I am trying to switch from eclipse to Intellij. Immediatelly I have found a problem. In the eclipse you can type:

syso

and the presss:

CTRL + SPACE BAR

and this will result in:

System.out.println

What is the equivalent shortcut in Intellij?

Cœur
  • 37,241
  • 25
  • 195
  • 267
gandra404
  • 5,727
  • 10
  • 52
  • 76
  • Check this answer for the question : http://stackoverflow.com/questions/8492205/newbie-to-intellij-idea-cant-not-find-system-out-println – ahjashish Aug 03 '15 at 05:56
  • [http://stackoverflow.com/questions/9479002/synonyms-of-sout-tab-shortcut-in-intellij-ide-for-myeclipse][1] [1]: http://stackoverflow.com/questions/9479002/synonyms-of-sout-tab-shortcut-in-intellij-ide-for-myeclipse – Mok Aug 03 '15 at 06:16
  • go through this link http://stackoverflow.com/questions/9479002/synonyms-of-sout-tab-shortcut-in-intellij-ide-for-myeclipse – Mok Aug 03 '15 at 06:17
  • go through this link [http://stackoverflow.com/questions/9479002/synonyms-of-sout-tab-shortcut-in-intellij-ide-for-myeclipse][1] [1]: http://stackoverflow.com/questions/9479002/synonyms-of-sout-tab-shortcut-in-intellij-ide-for-myeclipse – Mok Aug 03 '15 at 06:19

2 Answers2

10

Equivalent shortcut in IntelliJ is sout

Just type sout you will get list of shortcut. Choose your option what you want to write and then press enter.

All shortcut to print string in IntelliJ:

sout + TAB Prints a string to System.out

souf + TAB Prints a formatted string to System.out

soutm + TAB Prints current class and method name to System.out

soutp + TAB Prints method parameter names and values to System.out

soutv + TAB Prints a value to System.out

Deb
  • 2,922
  • 1
  • 16
  • 32
  • Is there anything like this only for switch statements in InteliJ? – Tim Apr 18 '18 at 15:23
  • 1
    @Tim Maybe this could help? https://stackoverflow.com/questions/12486846/intellij-generate-switch-case – Deb Apr 19 '18 at 08:01
1

Just write sout and press Tab.

Karthik
  • 4,950
  • 6
  • 35
  • 65