When you want to create a new line in Chrome DevTools console, instead of Enter
, you should press shift + Enter
.
In your normal text editor like vscode or notepad, input multiple lines as usual. Then copy the text and paste into Chrome DevTools console.