JDK-8241950: JShell could support auto-indent

Jan Lahoda jan.lahoda at oracle.com
Fri Apr 3 15:21:19 UTC 2020


Hi,

The recent upgrade to JLine 3.14.0 allows us to enable auto-indent, so 
that typing a '{' and pressing enter will automatically increase the 
indent of following lines by 4, and typing a '}' will automatically 
decrease the indent. The indent amount is configurable using /set indent.

Webrev:
http://cr.openjdk.java.net/~jlahoda/8241950/webrev.00/
JBS: https://bugs.openjdk.java.net/browse/JDK-8241950

What do you think?

Thanks,
     Jan


More information about the kulla-dev mailing list