Visual Studio Code powershell终端显示已损坏

时间:2017-06-05 00:35:24

标签: powershell visual-studio-code

我正在使用带有powershell的VisualStudioCode,并且换行符如下所示。

你知道为什么吗?

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"
}

1 个答案:

答案 0 :(得分:1)

你不应该使用" SysWOW64" powershell.exe控制台的路径。

将您的终端设置更新为:

"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"

如果您运行的是Windows 10,则可以将其全部删除,因为VS Code默认使用PowerShell作为Windows的终端。