DevTools Tips

Categories: Supported by:

Write code on multiple lines in the Console

If you're feeling adventurous and want to write longer pieces of code in the Console to execute more complex things, it can quickly become difficult.

Thankfully, there are a few ways to make your life easier by writing on multiple lines, like you would in a code editor:

Screenshot showing the button to switch the Firefox console to the multi-line mode

Screenshot showing the snippet tab in Edge's Sources panel