【问题标题】:How to prevent Visual Studio Code terminal from not showing the correct prompt after deleting characters?如何防止 Visual Studio Code 终端在删除字符后不显示正确的提示?
【发布时间】:2022-06-30 17:38:30
【问题描述】:

当通过 ssh 与 Visual Studio Code 连接并从终端提示输入中删除字符时,此字符通常处于错误状态。提示可能会留下一些未呈现的剩余字符,或者已呈现但实际上不在提示中的字符,从而无法确定其当前状态。

如何解决这个问题?

【问题讨论】:

    标签: visual-studio-code


    【解决方案1】:

    解决方案非常简单。在File>Preferences>Settings 下搜索terminal.integrated.localEchoLatencyThreshold 设置并将其设置为-1(或将terminal.integrated.localEchoEnabled 设置为off)。

    这将禁用本地回显延迟(本地编辑在终端上回显而不等待服务器确认的延迟)。通过这样做,您可以确保本地终端提示始终与服务器提示具有相同的状态。

    https://github.com/microsoft/vscode/issues/133885 上找到的修复程序。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-03-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-01
      • 1970-01-01
      • 2021-06-25
      • 1970-01-01
      相关资源
      最近更新 更多