當我打開 VS Code 時,默認終端是 PowerShell,默認路徑是PS E:\Research\GM\Articles\Modularity\Covariance network\Graph theory\Metric basics\Consensus clustering\clustering_programs_5_2.
Q1:如何將 PowerShell 中的默認路徑更改為 C:\Users<UserName>?(下圖紅線)
Q2:如何將默認終端從 PowerShell 更改為 cmd?(下圖黃圈)

################################################# ########################## 我遵循 Geeky 的方法,效果很好。但是,默認路徑仍然是,E:\Research\GM\Articles\Modularity\Covariance network\Graph theory\Metric basics\Consensus clustering\clustering_programs_5_2而不是類似C:\Users<UserName>:

uj5u.com熱心網友回復:
按Ctrl Shift P。鍵入“def”并彈出默認終端選擇選項。

單擊它并選擇您喜歡的終端

或者,將其添加到您的settings.json檔案中
"terminal.integrated.defaultProfile.windows": "Command Prompt",
如果您的檔案中已經存在以下代碼,settings.json或者還添加以下代碼
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell",
"path": "C:\\windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
},
"Command Prompt": {
"path": ["${env:windir}\\Sysnative\\cmd.exe", "${env:windir}\\System32\\cmd.exe"],
"args": [],
"icon": "terminal-cmd"
},
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/475109.html
標籤:视觉工作室代码
上一篇:在VSCode中更改游標型別
