![](/img/trans.png)
[英]Visual Studio Code PowerShell code debugging from the terminal
[英]Visual Studio Code powershell terminal display is broken
我将VisualStudioCode与powershell一起使用,并且换行符如下所示。
你知道为什么吗?
VisualStudioCode版本:
我的设置文件:
{
"editor.fontFamily": "D2Coding",
"editor.fontSize": 14,
"editor.wordWrap": "on",
"editor.mouseWheelZoom": true,
"window.reopenFolders": "none",
"workbench.colorTheme": "Visual Studio Dark",
"workbench.welcome.enabled": false,
"window.zoomLevel": 0,
"editor.cursorStyle": "line-thin",
"terminal.integrated.shell.windows": "C:\\Windows\\SysWOW64\\WindowsPowerShell\\v1.0\\powershell.exe"
}
您不应为powershell.exe控制台使用“ SysWOW64”路径。
将您的终端设置更新为:
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"
如果您正在运行Windows 10,则可以将其全部删除,因为VS Code将默认为PowerShell作为Windows的终端。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.