New Line in Chrome's Console
The Chrome Conundrum
When I want to run a small piece of code, I generally run to Chrome's console (
⌘ - Option - J).
The difficulty is when you have larger pieces of code and a new line would make your life a lot easier and more readable.
How many times have I hit
Return and accidentally submitted code, when I really just wanted a new line?
Enough times that I stopped using the console and started writing unit tests for everything.
The good: I'm now very good at writing unit tests.
The bad: Test setup can take a bit of time.
The Functional, Frugal Fix
When you want a new line in Chrome, type
Option - Return.
comments powered by Disqus