2017-06-05 100 views
0

我在PowerShell中使用VisualStudioCode,並且換行符如下所示。Visual Studio代碼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" 
} 
+0

您是否嘗試將設置文件移動到其他位置並重新啓動Visual Studio代碼?如果控制檯在沒有設置文件的情況下運行,您將會知道這是設置問題。如果發生沒有設置文件,您應該按照擴展上的說明在GitHub頁面上登錄問題。 – Bluecakes

+0

我刪除了配置文件並確認設置已初始化,但症狀仍然存在。 –

回答

1

你不應該使用您的powershell.exe控制檯 「SysWOW64中」 路徑。

更新你的終端設置這樣的:

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

如果您運行的是Windows 10,你可以一起卸下所有的VS代碼將默認的PowerShell作爲終端的Windows。

+0

我將其更改爲'sysnative',但我仍然有症狀。 –

+0

當你在代碼之外打開一個PowerShell進程時,你沒有問題?集成終端的結果是否相同? –

+0

是的,從外部打開PowerShell是沒有問題的,並且只有在使用Visual Studio代碼集成的shell中打開時纔會出現問題。 –

相關問題