Recently I installed the new version (2018.1) of IntelliJ IDEA, which added support for Java 10.
But when I trying to use the var (for local variable
var
As @Vic pointed out, this appears to be a bug. Until it gets fixed, you can create a custom live template as a workaround.
Create a live template triggered by the var abbreviation, then enter var as the template text. Make it available in the Java statement context.