[英]How to set Visual Studio Code Terminal output to English
For Windows对于 Windows
For ubuntu / Linux对于 ubuntu/Linux
Edit two files:编辑两个文件:
sudoedit /etc/default/locale: sudoedit /etc/default/locale:
LANG="en_US" LANG="zh_CN"
LANGUAGE="en_US:en" LANGUAGE="en_US:en"
sudoedit ~/.pam_environment: sudoedit ~/.pam_environment:
LANG=en_US LANG=en_US
LANGUAGE=en_US LANGUAGE=zh_CN
Logout and Login or Reboot.注销并登录或重新启动。
I have found the solution.我找到了解决办法。 Because the terminal is using powershell, so we should set the powershell's output.
因为终端使用的是powershell,所以我们应该设置powershell的输出。 here it is: 1. execute the command "set-culture -cultureinfo en-US" in terminal 2. restart vscode 3. execute "get-culture" in terminal,confirm the output just like this:
这里是: 1. 在终端中执行命令“set-culture -cultureinfo en-US” 2. 重新启动 vscode 3. 在终端中执行“get-culture”,确认输出如下:
LCID Name DisplayName ---- ---- ----------- 1033 en-US 英語 (米国) LCID 名称 DisplayName ---- ---- ----------- 1033 en-US English (China)
I'm on linux but having the same problem.我在 linux 上,但有同样的问题。
What works for me is to check terminal > integrated: inherit env
in vscode.对我有用的是检查
terminal > integrated: inherit env
在 vscode 中terminal > integrated: inherit env
。
I had the same issue.我遇到过同样的问题。 I found the solution here https://github.com/dotnet/sdk/issues/8686
我在这里找到了解决方案https://github.com/dotnet/sdk/issues/8686
It was fixed by setting the environmental variable "DOTNET_CLI_UI_LANGUAGE" to "en"通过将环境变量“DOTNET_CLI_UI_LANGUAGE”设置为“en”来修复它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.