【问题标题】:Why do Visual Studio Code error insights in c++ Show in a different language than the default one?为什么 c++ 中的 Visual Studio Code 错误见解以与默认语言不同的语言显示?
【发布时间】:2022-10-31 06:14:19
【问题描述】:

如何解决即使我的显示语言设置为英语,我的错误见解仍以波兰语显示的事实?

【问题讨论】:

    标签: visual-studio-code visual-c++


    【解决方案1】:

    我发现这是扩展程序中的错误。您需要做的就是解决它:

    • 尝试将语言更改为另一种语言,然后再改回英语。
    • 如果这不起作用,请打开文件浏览器并转到:

    C:用户<>.vscodergv.json

    它可能看起来像这样:

    // This configuration file allows you to pass permanent command line arguments to VS Code.
    // Only a subset of arguments is currently supported to reduce the likelihood of breaking
    // the installation.
    //
    // PLEASE DO NOT CHANGE WITHOUT UNDERSTANDING THE IMPACT
    //
    // NOTE: Changing this file requires a restart of VS Code.
    {
    // Use software rendering instead of hardware accelerated rendering.
    // This can help in cases where you see rendering issues in VS Code.
    // "disable-hardware-acceleration": true,
    // Enabled by default by VS Code to resolve color issues in the renderer
    // See https://github.com/microsoft/vscode/issues/51791 for details
    "disable-color-correct-rendering": true,
    // Allows to disable crash reporting.
    // Should restart the app if the value is changed.
    "enable-crash-reporter": true,
    // Unique id used for correlating crash reports sent from this instance.
    // Do not edit this value.
    "crash-reporter-id": "your-id"
    }
    

    在文件中,您可能不会看到一个短语:“”locale”:“en-us””,或者您会看到它,但它不是“en-us”,而是您的错误语言。要修复它,请像这样插入您的“语言环境”:

    // This configuration file allows you to pass permanent command line arguments to VS Code.
    // Only a subset of arguments is currently supported to reduce the likelihood of breaking
    // the installation.
    //
    // PLEASE DO NOT CHANGE WITHOUT UNDERSTANDING THE IMPACT
    //
    // NOTE: Changing this file requires a restart of VS Code.
    {
    // Use software rendering instead of hardware accelerated rendering.
    // This can help in cases where you see rendering issues in VS Code.
    // "disable-hardware-acceleration": true,
    // Enabled by default by VS Code to resolve color issues in the renderer
    // See https://github.com/microsoft/vscode/issues/51791 for details
    "disable-color-correct-rendering": true,
    // Allows to disable crash reporting.
    // Should restart the app if the value is changed.
    "enable-crash-reporter": true,
    // Unique id used for correlating crash reports sent from this instance.
    // Do not edit this value.
    "crash-reporter-id": "your-id",
    "locale": "en-us"
    }
    

    记住不要编辑崩溃报告者 ID

    【讨论】:

      猜你喜欢
      • 2022-12-18
      • 1970-01-01
      • 2015-08-26
      • 2018-08-23
      • 1970-01-01
      • 1970-01-01
      • 2017-08-04
      • 2019-07-17
      • 1970-01-01
      相关资源
      最近更新 更多