title: Terminal will be reused by tasks, press any key to close it
body: <p>I am learning C++ using vscode on mac BigSur.
  Terminal always prints &quot;Terminal will be reused by tasks, press any key to close it.&quot;
  And after trying adding on 'presentation' with property 'panel:new'. This issue still happens.</p>
  <p>this is my task.json</p>
  <pre><code>{
  &quot;tasks&quot;: [
      {
          &quot;type&quot;: &quot;cppbuild&quot;,
          &quot;label&quot;: &quot;C/C++: g++ build active file&quot;,
          &quot;command&quot;: &quot;/usr/bin/g++&quot;,
          &quot;args&quot;: [
              &quot;-g&quot;,
              &quot;${file}&quot;,
              &quot;-o&quot;,
              &quot;${fileDirname}/${fileBasenameNoExtension}&quot;
          ],
          &quot;options&quot;: {
              &quot;cwd&quot;: &quot;/usr/bin&quot;
          },
          &quot;problemMatcher&quot;: [
              &quot;$gcc&quot;
          ],
          &quot;group&quot;: {
              &quot;kind&quot;: &quot;build&quot;,
              &quot;isDefault&quot;: true
          },
          &quot;presentation&quot;: {
              &quot;echo&quot;: true,
              &quot;reveal&quot;: &quot;always&quot;,
              &quot;focus&quot;: true,
              &quot;panel&quot;: &quot;new&quot;
          },
          &quot;detail&quot;: &quot;Generated task by Debugger&quot;
      }
  ],
  &quot;version&quot;: &quot;2.0.0&quot;}
  </code></pre>
  <p>this is my launch.json</p>
  <pre><code>{
  
  &quot;version&quot;: &quot;0.2.0&quot;,
  &quot;configurations&quot;: [
      {
          &quot;name&quot;: &quot;g++ - Build and debug active file&quot;,
          &quot;type&quot;: &quot;cppdbg&quot;,
          &quot;request&quot;: &quot;launch&quot;,
          &quot;program&quot;: &quot;${fileDirname}/${fileBasenameNoExtension}&quot;,
          &quot;args&quot;: [],
          &quot;stopAtEntry&quot;: false,
          &quot;cwd&quot;: &quot;${workspaceFolder}&quot;,
          &quot;environment&quot;: [],
          &quot;externalConsole&quot;: false,
          &quot;MIMode&quot;: &quot;lldb&quot;,
          &quot;preLaunchTask&quot;: &quot;C/C++: g++ build active file&quot;
      }
  ]}
  </code></pre>
  <p><a href="https://i.stack.imgur.com/nTK2t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nTK2t.png" alt="enter image description here" /></a></p>