How do I automatically clear VS Code terminal when starting a build?

后端 未结 5 581
一向
一向 2020-12-14 15:23

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

5条回答
  •  心在旅途
    2020-12-14 15:46

    Add this user setting to clear the OUTPUT tab on clicking run (▶)

    "code-runner.clearPreviousOutput": true,
    

    This is not the same as clearing the terminal but it might be what someone wants.

    [Edit] This requires the Runner extension, which I'd recommend for testing/running scripts directly within VS Code.

提交回复
热议问题