IntelliJ plugin for formatting final var
statements into val
in Java 10+.
https://plugins.jetbrains.com/plugin/14406-values
Type val
then TAB (or whichever template completion key you chose) to expand to final var
.
CTRL+.
(on Windows) folds any instance of final var
to val
.
By default, all instances of final var
will be folded by default.
This can be changed in global settings.
Code folding: final var
-> val
Live template: val
-> final var