How to clear Chrome console by shortcut keys?

谁都会走 提交于 2019-11-27 11:38:19

问题


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?


回答1:


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




回答2:


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.




回答3:


Keyboard shortcuts

Ctrl + L or Cmd + L 

Command line

clear()

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




回答4:


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




回答5:


It is Ctrl + Shift + L for Firefox console.



来源:https://stackoverflow.com/questions/5483451/how-to-clear-chrome-console-by-shortcut-keys

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!