【问题标题】:Integrated terminal stops showing text in Visual Studio Code集成终端停止在 Visual Studio Code 中显示文本
【发布时间】:2020-06-20 08:35:09
【问题描述】:

一段时间后,集成终端停止显示文本。有人知道这个问题和解决方法吗?

Integrated terminal screenshot #1

Integrated terminal screenshot #2

Visual Studio 代码详情:

Version: 1.45.1
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
Date: 2020-05-14T08:27:22.494Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.4.0-33-generic

【问题讨论】:

  • 这与您的问题相似吗? stackoverflow.com/questions/54092486/…
  • 不,看起来不一样。我的错误出现在“Python 调试控制台”中。
  • 你期望发生什么?
  • 我希望能够看到终端的输出。

标签: python visual-studio-code terminal


【解决方案1】:

这个技巧似乎奏效了:

Ctrl+Shift+P -> "配置运行时参数",

然后删除以下条目:

"disable-color-correct-rendering": true

【讨论】:

    【解决方案2】:

    文件->首选项->设置,打开settings.json

    添加以下代码:

    "terminal.integrated.shell.linux": "/bin/bash",
    

    然后重启 vscode。

    如果不行,试试这个:

    文件 -> 首选项 -> 设置 -> 功能 -> 终端 -> 继承环境

    【讨论】:

    • 不,还是一样的:所有的背景都变黑了,文字很快就消失了。 i.imgur.com/M6gJy5P.png
    • 有一个类似的问题已经解决了,看看这个:link
    • 谢谢,但这不是我的情况。我想我在 github 跟踪器上发现了问题,github.com/microsoft/vscode/issues/69665 目前解决问题的唯一方法是放大\缩小。
    【解决方案3】:

    我在使用远程桌面连接到 Mac 时遇到了同样的问题。

    我必须点击应用程序左下角的设置齿轮

    搜索 Gpu Acceleration 并关闭设置

    【讨论】:

      猜你喜欢
      • 2018-03-09
      • 1970-01-01
      • 1970-01-01
      • 2021-09-05
      • 2017-05-13
      • 2019-03-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多