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
.
Asked
Active
Viewed 2,739 times
1

Octavia Togami
- 4,186
- 4
- 31
- 49

Bayu Wiratama
- 19
- 1
- 2
-
hit Ctrl + J to see all available shortcuts – Shubham Jul 24 '20 at 16:08
-
Make sure you have [live templates](https://www.jetbrains.com/help/idea/using-live-templates.html) enabled – Java Devil Jul 24 '20 at 16:08
2 Answers
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 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