Saša Šijak
Saša Šijak

Reputation: 9301

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

Upvotes: 12

Views: 4070

Answers (2)

Satyen Shimpi
Satyen Shimpi

Reputation: 194

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

Upvotes: 13

CrazyCoder
CrazyCoder

Reputation: 401905

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.

Upvotes: 31

Related Questions