擅长:python、mysql、java
<p>我无法让它与PowerShell<em>完全</em>一起工作(它会打开,但我的文件输出不会在其中,而是出现了一些关于后台作业的内容…),但使用<a href="https://medium.com/analytics-vidhya/how-to-replace-external-terminal-in-visual-studio-code-with-the-new-windows-terminal-66e8460f2d31" rel="nofollow noreferrer">this guide</a>,我能够让它与Windows终端一起工作。指南指定需要将设置设置为<code>wt -p cmd cmd</code>以避免出现“'\c'命令无法识别”错误:</p>
<blockquote>
<p>This is because VScode assumes you are running <code>cmd</code> and has (afaik) no config for the command line arguments, and when they get passed to <code>wt</code> it has no clue what they mean, adding <code>cmd</code> (the last one) then makes <code>wt</code> run <code>cmd</code> and the argument get passed to it correctly.</p>
<p>If you want to use your profile for <code>cmd</code> you have to add <code>-p cmd</code>, so the full command becomes <code>wt -p cmd cmd</code></p>
</blockquote>
<p>因此,将<code>terminal.external.windowsExec</code>设置为<code>wt -p cmd cmd</code>应该允许您使用Windows终端</p>