Why JShell editor does not save the code?

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
jdk-10.0.1 windows 10
Run the JShell editor to write code, click Accept, start again, and they lost all of the text except the first line! If you repeat this cycle of action, then there is added another line and so on.
Help, please.

I tried to put another editor
/set editor
but there is such a thing...
by | 6 views

1 Answer

0 like 0 dislike
As there is no preserving using code /edit used an alternative solution:
JShell by default, Windows saves and opens files from the user's home folder, so it's quite easy to create in any convenient editor code files in this location and run them from JShell using
/open filename

Related questions

0 like 0 dislike
3 answers
asked May 10, 2019 by wan340
0 like 0 dislike
1 answer
asked May 23, 2019 by MoVVe
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
35,573 users