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()
.
- (blog) IntelliJ IDEA Blog - Java 25 LTS and IntelliJ IDEA
- (video) IntelliJ IDEA. Helen's Take On: Writing Less Code
- (video) IntelliJ IDEA. Write Code Faster Using Live Templates
- (video) IntelliJ IDEA Pro Tips: Live Templates
- (documentation) IntelliJ IDEA Help - Using Live Templates
- (documentation) IntelliJ IDEA Help - Creating Live Templates
- (documentation) IntelliJ IDEA Guide - Create a Custom Test Live Template