to using commands that were previously submitted by bringing focus to the console and pressing up/down key on it. I want to remove all of the recent command. I've tried this command :
but it's still not working properly. I even clean the whole cookies and cache in the browser. but these commands still there on the console. does anyone know how?
If you want to clear the list of last typed commands, follow these steps:
(Step 1 and 2 are important, don't skip them!)
Right-click on the item with key "consoleHistory", and choose "Delete".
Done! You may close the new console, and then dock the previous one if wanted. The console history will be gone when you reload the console.
If you just want to clear the console log (not the commands), just press Ctrl + L.
You could also use Incognito mode if you don't want to keep the list of commands you're going to type.
I found a quick way to do this with cool keyboard shortcut:
Inside chrome console
clearand you will find it :)
clear() in the chrome console to remove all previous text there.
I ended up here looking for how to do the same thing in Firefox.
In case anyone else does the same, there is a
clearHistory command in the Firefox console which will do just that.
It can also be fixed by going to the developer tool settings and resetting to defaults.. (this will not reset 'Chrome', only developer tools options)
This way you will lose your developer settings, but for me the only thing that mattered was turning cache off again..
Press f5 key. When you refresh the current webpage where you've been working on, the command history will be removed.
If you don't want to have this console history (like myself), simply disable it from the devtool's configuration options (see on the image) below ...
These shortcuts Clear Console.
??K or Ctrl?L
©2020 All rights reserved.