How to get rid of “Terminal will be reused by tasks, press any key to close it.” behaviour?

后端 未结 4 2130
渐次进展
渐次进展 2020-12-31 00:11

Upon executing a task (cargo build in this case), the following appears in the VSCode terminal:

> Executing task: cargo build <

(output of the task he         


        
4条回答
  •  难免孤独
    2020-12-31 00:53

    An alternative solution is to set the output window to auto-focus.

    Add this to the task definition:

        "presentation": {
            "focus": true
        }
    

    Then it's not that annoying anymore because you can dismiss the compiler output with a single key press.

    The benefit of this is that the task output is visible, so you can see if there were any errors or warnings.

提交回复
热议问题