Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set Visual Studio Code Terminal output to English

Tags:

My environment is:

  • Visual Studio Code: English
  • Windows 10: Japanese

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

like image 664
iBright Avatar asked Apr 04 '19 04:04

iBright


2 Answers

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
like image 51
user9343019 Avatar answered Sep 24 '22 12:09

user9343019


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            英語 (米国)
like image 33
iBright Avatar answered Sep 25 '22 12:09

iBright