Feature request: auto split multiple function definitions

I think code like this should auto-split to two cells instead of return SyntaxError:

function add(a, b) { return a + b; }
function mul(a, b) { return a - b; }

Is that possible? This makes input a bit more streamlined and also allows copy-pasting a bunch of functions.


We’re hoping to continue to improve the cell editor workflow, to make it more and more comfortable: Auto-splitting of multiple expressions would be nice, but even a better error message telling you where you can split your multiple statements would be a good place to start.

In a similar fashion, we’re also planning on auto-deleting empty cells when you blur them, and move to focus a different cell. That should help avoid * | undefined from cluttering up your notebooks.