How to start a new line in the Chrome console window?

I know this is a stupid question, but I really need help. How to start a new line in the Chrome console? Each time I press enter, the console runs my code. How to start a new line without running the code? Thanks

+19
source share
4 answers

After entering the first line, instead of pressing enter, press shift + enter. This will lead to the next line without code execution. So when you are done, press enter, it will execute all the code you just wrote.

Also known tip, you can invoke the JS console on any tabs in the Chrome developer tool by pressing ESC (e.g. Elements, Sources, etc.).

+32
source

You can press Shift+ Enterif you are using Windows. If you are on a Mac, you can use Ctrl+ Return.

For more keyboard shortcuts

+1
source

- "", "" "". "+ " .

, Ctrl + Enter, .

, , .

Firefox, , Scratchpad.

0

... Shift + Enter - , , , shift + enter , . , , , Enter, , Shift + Enter, . , .

0

Source: https://habr.com/ru/post/1683983/


All Articles