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
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.
Issue has been fixed in upcoming IntelliJ IDEA 2018.2 release:
https://www.jetbrains.com/idea/nextversion/ (currently EAP version)