-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task>Presentation should allow to clear the terminal output. #30058
Comments
Does this issue refer to automatically clearing the terminal output when a task begins? I've been searching for a way to do that. |
Yes, this is the feature request. |
I really wish this was a thing. |
+1 |
2 similar comments
+1 |
+1 |
Hi, |
Does not work for me, VSCode on Win10. |
Windows doesn't have clear command, but you can try cls: |
No luck neither :(
|
It works for me by just adding a "clear" command before my real task command. Like this "command":[
"clear;",
"clang++ -g -O0 a.cpp"
], Do NOT miss the semicolon after "clear" |
Still no luck on Windows 10. using 1.25. Funny enough, without the the semicolon, I lose all the command output:
|
@Geobert Try using WSL. The workaround will work there (on Linux side ofc) plus plenty of benefits to using it. |
I can't, Win 7 :( |
+1 I've tried so many workarounds for this it is starting to wear me out. Even a build task that depends on another task that clears the terminal doesn't work. I suppose because clearing uses "type": "process" and my gcc build task uses "type": "shell". I am either stuck periodically deleting all the new terminal instances created for each build or spending time figuring out where output of latest build ends and old one begins. |
Any progress on the issue? Any workaround working on Windows 10? |
As always a PR will help to speed things up. |
cls command in task runner does not work. I dont like scrolling to the bottom to check the error messages. |
+1 Also looking for this functionality. |
@alexr00 This would actually be a good first feature-request. Only limited changes. |
As a workaround, try creating a composite task, where the actual task you want to execute depends on the task to clear the terminal. For example:
|
At first I thought it worked, but it only "hides above" the previous launch (at least on Windows). If you scroll up, you'll see the previous launches output |
So it does. I hadn't noticed that. What's even more interesting is that if (in my example) I bin the For my example, it seems to be if I run a passing test suite then the behaviour is as I would expect, whether that is from the command pallet or a custom key binding. If I run a failing test suite at any time, it reverts to the "hide above" behaviour until I bin the terminal. I wonder why that would be? Very frustrating. Is there perhaps a way to run a shell task, e.g. Another workaround, broadly similar to the above is to change the task to give the shell the focus. Rebind
|
At home with my gaming mouse (with buttons on thumb side), I've done this exactly: focus term, press space, run task. But at work I don't have such mouse ^^' |
No description provided.
The text was updated successfully, but these errors were encountered: