简体   繁体   English

Visual Studio Code Powershell终端显示损坏

[英]Visual Studio Code powershell terminal display is broken

I am using VisualStudioCode with powershell, and the line breaks as shown below. 我将VisualStudioCode与powershell一起使用,并且换行符如下所示。

Do you have any idea why? 你知道为什么吗?

VisualStudioCode Version: VisualStudioCode版本:

My settings file: 我的设置文件:

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

You should not be using the "SysWOW64" path for your powershell.exe console. 您不应为powershell.exe控制台使用“ SysWOW64”路径。

Update your terminal setting to this: 将您的终端设置更新为:

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

If you are running Windows 10 you can remove it all together as VS Code will default to PowerShell as the terminal for Windows. 如果您正在运行Windows 10,则可以将其全部删除,因为VS Code将默认为PowerShell作为Windows的终端。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM