Compatible with IntelliJ IDEA
Folds redundant type information in local variable declarations (including for and foreach loops) to just display "var". Conversely, if you enter "var" as the type in a local variable declaration, a for loop, or a foreach loop, replaces the "var" with the actual type once you press Enter. Can also handle "val" in the same way, just for final variables (this is disabled by default).

Download plugin