How to clear Chrome console by shortcut keys?

后端 未结 5 1662
余生分开走
余生分开走 2020-12-08 06:28

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?

相关标签:
5条回答
  • 2020-12-08 06:38

    You can use Ctrl + L to clear the chrome-dev-console.

    0 讨论(0)
  • 2020-12-08 06:40

    It is Ctrl + Shift + L for Firefox console.

    0 讨论(0)
  • 2020-12-08 06:50

    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.

    0 讨论(0)
  • 2020-12-08 06:51

    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 !!!

    0 讨论(0)
  • 2020-12-08 06:53

    Keyboard shortcuts

    Ctrl + L or Cmd + L 
    

    Command line

    clear()
    

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

    0 讨论(0)
提交回复
热议问题