IntelliJ IDEA 2017.1 shows “var” instead of actual

2019-01-19 16:15发布

问题:

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?

回答1:

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.



回答2:

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