IntelliJ IDEA no code completion for Java 10 'var'?

六眼飞鱼酱① 提交于 2019-11-30 20:36:16

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)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!