Visual Studio Code - 终端空白屏幕 [英] Visual Studio Code - Terminal Blank Screen

查看:71
本文介绍了Visual Studio Code - 终端空白屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用 Visual Studio Code,因为它是测试版,我最喜欢它的功能之一是在应用程序中使用 Angular CLI 的集成终端.自从我有了笔记本电脑以来,它一直运行良好,但我在圣诞节假期重新安装了 Windows 10,显然因此不得不重新安装 Visual Studio Code.

从那时起我就遇到了终端问题,在您按下回车键之前它一直是空白的,此时您会看到路径,但不是通常应该从 Windows 命令行获得的版权声明.

在点击返回之前:

点击回车后:

这就是我直接从 Windows 10 命令行中所期望的:

到目前为止,我已经尝试了以下方法:

  • 通常的 Windows 关闭/重启
  • 重新安装 VS Code(甚至从常规改为内部人员)
  • 将默认命令行 Shell 从 CMD 更改为 Powershell 和又回来了
  • 添加新的命令行 Shell

还有什么我可以尝试的吗?有没有其他人遇到过同样的问题?

解决方案

经过一些研究,我发现这是 VS Code 中用于集成 shell 的应用程序中的一个错误.看起来 Android Studio 也有同样的问题.您可以在此处阅读更具体的方式/时间/内容等:

I've been using Visual Studio Code since it was in beta and one of the features I like best about it is the integrated terminal for using the Angular CLI in app. I've had it working fine since I had the laptop, but I re-installed Windows 10 over the Xmas break and obviously as a result had to re-install Visual Studio Code.

Since then I've had issues with the Terminal, it's blank until you hit return, at which point you see the path, but not the usual copyright notice you should get from the Windows Command Line.

Before hitting return:

After hitting return:

And this is what I was expecting directly from the Windows 10 Command Line:

So far I've tried the following:

  • The usual Windows shut down / restart
  • Re-installing VS Code (even changed from regular to insiders)
  • Changing the default Command Line Shell from CMD to Powershell and back again
  • Adding a new Command Line Shell

Is there anything else I can try? Has anyone else encountered the same issue?

解决方案

After some research I've found that this is a bug in VS Code with the application they use to integrate the shell. Looks like Android Studio has the same issue too. You can read about the more specific how / when / what etc. here:

https://github.com/Microsoft/vscode/issues/57803

This has been fixed on the insiders release that landed for me today (08/01/2019), not sure when this will be rolled out to the general release (if not January then I would imagine it might roll out in February barring no further issues).

So for anyone else still getting this issue, update to the latest version of VS Code. If you have done and you're still getting the same problem you can check and report issues here:

https://github.com/Microsoft/vscode/issues

这篇关于Visual Studio Code - 终端空白屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆