Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA 2017.1 shows "var" instead of actual type

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

like image 932
Saša Šijak Avatar asked Mar 23 '17 09:03

Saša Šijak


2 Answers

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.

like image 149
CrazyCoder Avatar answered Oct 11 '22 20:10

CrazyCoder


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

And just next to it Uncheck Getters and setters to start showing getter Setter method calls with full method name

enter image description here

like image 28
Satyen Shimpi Avatar answered Oct 11 '22 21:10

Satyen Shimpi