VS Code Powershell "?]633;P;IsWindows=True"

Chi*_*mma 7 powershell visual-studio-code

我正在 Vs code 中使用 Angular 开发一个 Web 应用程序。\n我在修复这些错误的过程中遇到了一些错误,几分钟后我的 vscode 就变砖了,它恢复到正常状态,但发出了一些奇怪的蜂鸣声,所以我重新启动了我的笔记本电脑。

\n

当我再次打开 VS code 时,嘟嘟声重复出现,并且我的 powershell 显示一些奇怪的文本

\n

所以,我认为这个错误是由于我的 vscode 中的一些错误配置造成的,我卸载了 VScode ,删除了所有相关数据

\n

安装后,再次出现带有蜂鸣声的相同奇怪文本

\n

奇怪的文字

\n
\xe2\x86\x90]633;P;IsWindows=True\n633;A633;P;Cwd=D:\\user\\website\\quizPS D:\\chiru\\website\\quiz> 633;B\n\xe2\x86\x90]633;C```\n
Run Code Online (Sandbox Code Playgroud)\n

小智 9

正如 @meganrogge 在https://github.com/microsoft/vscode/issues/160419设置中所说terminal.integrated.shellIntegration.enabledfalse修复此问题


小智 0

你安装了scala sbt吗?它不能很好地与 ms power shell 配合使用。例如,在 Windows 上,可以通过 git bash 使用它。转到您的用户与代码设置并进行调整,以便以下终端集成将处于活动状态

"terminal.integrated.profiles.windows":{"Git Bash":{"path":"C:\\Program Files\\Git\\bin\\bash.exe"},  },
"terminal.integrated.defaultProfile.windows": "Git Bash",
Run Code Online (Sandbox Code Playgroud)

关闭 VS Code 终端面板中的 MS Power shell 选项卡并添加新的 bash 选项卡。