I press Ctrl+Shift+B to start a build in Visual Studio Code (it\'s configured to just run GNU Make), and the build tool out
If you control the build task yourself, it's easy to prepend a clear command:
clear
"tasks": [ { "label": "build", "type": "shell", "command": "clear && make", ....