Live templates for simple IO

Add simple IO methods using live templates.

Java 25 introduces simple IO methods, such as IO.println() and readln() to make interacting with the console more convenient. IntelliJ IDEA introduces two new live templates to use these methods: iop for println() and ior for readln().

In addition, there are quick-fixes available to convert IO.println() to System.out.println(), and vice versa. Invoke Context Actions ⌥⏎ (macOS) / Alt+Enter (Windows/Linux) on the method and select the option Replace with System.out.println() or Replace with IO.println().

Interested in JVM Development?

call to action image

Did you know IntelliJ IDEA has a quick-fix to add a static import for simple IO?

Learn More


Related Resources

New live templates for main methods
New live templates for main methods
Create an instance main method using a live template.
Live Templates
Live Templates
Use Live Templates to auto-complete common code structures for you.
Inlay Hints
Inlay Hints
Inlay hints provide additional information about your code.