1、打开VS Code界面,点击左下角设置图标,打开settings菜单。
2、鼠标滚动下拉找到terminal栏目。
3、找到Task板块中的Auto Detect选项。
4、将off按钮改为on,保存设置即可。