How to clear Chrome console by shortcut keys?

Google ChromeGoogle Chrome-Devtools

Google Chrome Problem Overview


I want to clear the Console tab in Chrome developer tools inside the Chrome browser. I know that their is an button for that but what's the shortcut keys for doing that?

Are their anywhere cheatsheet for chrome developer tool or chrome shortcuts?

Google Chrome Solutions


Solution 1 - Google Chrome

You can use Ctrl + L to clear the chrome-dev-console on Windows/Linux and Cmd + K on Mac.

Solution 2 - Google Chrome

The list of keyboard shortcuts for Chrome Developer Tools is at: <http://code.google.com/chrome/devtools/docs/shortcuts.html>;.

For clearing the console log, press Ctrl-L. Unfortunately, it appears the log needs to be in focus (clicked on) for the keyboard command to work.

Solution 3 - Google Chrome

Keyboard shortcuts

Ctrl + L or Cmd + L 

Command line

clear()

Here's a cheatsheet for more shortcut keys: http://anti-code.com/devtools-cheatsheet/

Solution 4 - Google Chrome

I do not know why, but on my Mac (OS X El Capitan v10, Google Chrome v40) shortcuts mentioned above Cmd+L do NOT clear the Console log.

But Cmd + k perfectly works !!! Before using this shortcut make sure that the console is active!

So my solution for Macs is: Cmd + k !!!

Solution 5 - Google Chrome

It is Ctrl + Shift + L for Firefox console.

Solution 6 - Google Chrome

I found a different shortcut by accident. Maybe it is doing something else. Press Spacebar to clear the console in chrome devtools. It works too. ;)

NB: I am using ubuntu 18.04.5 LTS

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser605334View Question on Stackoverflow
Solution 1 - Google ChromeNicola CorettiView Answer on Stackoverflow
Solution 2 - Google ChromeJames AnView Answer on Stackoverflow
Solution 3 - Google ChromejaredwilliView Answer on Stackoverflow
Solution 4 - Google ChromeRenat GatinView Answer on Stackoverflow
Solution 5 - Google ChromeNikhil GirrajView Answer on Stackoverflow
Solution 6 - Google ChromeSourabh KumarView Answer on Stackoverflow