1

When i type sout in IntelliJ, it doesn't show the System.out.println() shortcut, and instead shows WSDLOutput, WSDLOutputImpl, JSWBlend_SRC_Outpeer, and LSOutput.

Octavia Togami
  • 4,186
  • 4
  • 31
  • 49
Bayu Wiratama
  • 19
  • 1
  • 2

2 Answers2

3

This live template works in Java files inside a method (not in the root of the class where there can be no executable code except the static initializer blocks).

So, make sure you are inside a method and also check Java class in inside the sources root.

sample

Sample class to try:

public class Main {
    public static void main(String[] args) {
        sout <- press Tab here
    }
}

You can expand it using the Tab key.

CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
0

Go to Preferences -> Live Templates -> Java. Check that you have the sout live template. If you don't, add a new live template under the user section with the abbreviation sout and the text System.out.println().

izhang05
  • 744
  • 2
  • 11
  • 26