擅长:python、mysql、java
<p>对于任何后来看到问题的人,如果你想做<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">link mentioned above</a>中提到的事情,我将其总结如下:</p>
<p>第一。来自VisualStudio代码</p>
<p>打开<code>Settings</code></p>
<p>在搜索框中键入<code>Terminal>external</code>,然后在下面找到设置<code>Terminal › External: Windows Exec</code></p>
<p>将下面的cmd路径更改为<code>wt -p cmd cmd</code></p>
<p>第二。从Windows终端</p>
<p>单击窗口左上角的向下箭头,然后单击<code>settings</code></p>
<p>一个<code>json</code>文件将在vscode中打开。添加下面的配置以更改配置文件。
(看看这些注释。更改注释内容为<code>Make changes here to the ... profile.</code>的地方。)</p>
<p><code>"startingDirectory": "%__CD__%",</code></p>
<p>这将确保您的cmd/powershell位于正确的工作目录中。
(如果您的程序包含与路径相关的工作,这一点至关重要。)</p>
<p>这些步骤应该在安装Windows终端、将其添加到路径(可能是自动的)并安装Visual Studio代码之后执行。
(我目前的操作系统是Windows 11,因此理论上对Windows 10用户是可行的。)</p>