I've Googled a lot and coudn't find a valid solution that ended up working. And I must say that I am quite surprised that not a lot people find this to be an issue? Like imagine you have 200 rows of errors and you ended up fixing some of them. Then when u run it again all the old errors will come back and there will be hard to see where the new errors are. Clear just clears the terminal, it doesn't actually clear the error or scrollback buffer.
I had a function that worked before but now all of the sudden (Idk what I did) it stopped working.
function Err {
# it's using `global` so that it works when I'm in the debugger mode
param( [switch]$Clear )
if ($Clear) { $global:error.Clear() }
return $global:error
}
So I wonder how do I clear my scrollback buffer on VSCODE? I am using Powershell as the terminal.