iBright
iBright

Reputation: 151

How to set Visual Studio Code Terminal output to English

My environment is:

When I try to use Terminal to add package, it output messages in Japanese.
But I would like it to output them in English.

terminal output

enter image description here

Upvotes: 8

Views: 9983

Answers (5)

Sergey  Artyuh
Sergey Artyuh

Reputation: 53

I had the same issue. I found the solution here https://github.com/dotnet/sdk/issues/8686

It was fixed by setting the environmental variable "DOTNET_CLI_UI_LANGUAGE" to "en"

Upvotes: 0

user9343019
user9343019

Reputation: 54

For ubuntu / Linux

Edit two files:

  1. sudoedit /etc/default/locale

    LANG="en_US"
    
    LANGUAGE="en_US:en"
    
  2. sudoedit ~/.pam_environment

    LANG=en_US
    
    LANGUAGE=en_US
    

Logout and Login or Reboot.

Upvotes: 1

iBright
iBright

Reputation: 151

I have found the solution. Because the terminal uses PowerShell, we should set the powershell's output. Here it is:

  1. execute the command "set-culture -cultureinfo en-US" in terminal
  2. restart vscode
  3. execute "get-culture" in the terminal and confirm the output just like this:

LCID             Name             DisplayName
----             ----             -----------
1033             en-US            英語 (米国)

Upvotes: 4

C W
C W

Reputation: 69

I'm on linux but having the same problem.

What works for me is to check terminal > integrated: inherit env in vscode.

Upvotes: 0

user9343019
user9343019

Reputation: 54

For Windows

  1. go to visual studio code
  2. Press Ctrl+Shift+P to bring up the Command Palette then start typing "display" to filter and display the Configure Display Language command.
  3. open local.json file
  4. You can use IntelliSense (Ctrl+Space) to select a different supported language locale.
  5. Change to en
  6. Restart Visual Studio Code

Upvotes: 2

Related Questions