IntelliJ IDEA 2017.1 shows “var” instead of actual

2019-01-19 16:26发布

After upgrading to IntelliJ IDEA 2017.1 variables now do not show their types. Instead, it shows var. Also, it abbreviates some method calls. For example instead me.getIdAsStr() it shows me.idAsStr. How to revert to the old behavior?

enter image description here enter image description here

2条回答
Lonely孤独者°
2楼-- · 2019-01-19 17:00

To disable showing val/var instead of variable type go to Settings | Editor | General | Code Folding and UnCheck Variable Declaration

查看更多
萌系小妹纸
3楼-- · 2019-01-19 17:19

This behavior is caused by the Advanced Java Folding plug-in. Either disable the plug-in or change its setting to not fold certain code elements.

查看更多
登录 后发表回答