Home > Article > Development Tools > How to configure Chinese interface (Chinese version) in VSCode
This article will introduce to you how to configure the Chinese interface in VSCode. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.
[Recommended learning: "vscode tutorial"]
By default, Visual Studio Code comes with English as the display language, other LanguageDepends on the language pack extension provided by Marketplace.
VS Code will detect the UI language of the operating system and will prompt you to install the corresponding language pack (if available on the market). Here is an example of a recommended Simplified Chinese language pack:
#After you install the language pack extension and follow the restart prompts, VS Code will use the language that matches your operating system UI language Bag.
You can also override the default UI language by explicitly setting the VS Code display language.
The "Configure display language" command creates a locale.json
file in the user VS code folder, where you can set the locale
attribute locale
is the preferred locale.
Press Ctrl Shift P to bring out the command palette, then start typing "display" to filter and display the Configure Display Language commands.
Press Enter and a locale.json
file will be created with the default value set to your operating system language.
You can use IntelliSense ( Ctrl Space ) to select a different supported language locale.
Save locale.json
and restart VS Code to use the new display language.
The following example sets VS Code to display Simplified Chinesezh-CN
:
{ // Defines VS Code's display language. " locale ": "zh-CN" }
You can rerun the Configure Display Language command to view and change locale.json
file.
Note: Changing the locale
value requires restarting VS Code.
Display language | Locale |
---|---|
English (US) | en |
zh -CN
|
|
zh-TW
|
|
fr
|
|
de
|
|
it
|
|
es
|
|
ja
|
|
ko
|
|
ru
|
|
bg
|
|
hu
|
|
pt-br
|
|
tr
|
You can search for language packs in Expanded view ( Ctrl Shift X ) by typing the language you are looking for followed by
category:"Language Packs".
You can install multiple language packs and use the "Configure Display Language" command to select the current display language.
to specify it when starting VS Code Locales. The following is an example of using the
command line switch to set the VS Code display language to French: <pre class="brush:js;toolbar:false;">code . --locale=fr</pre>
For more programming-related knowledge, please visit:Programming Video
The above is the detailed content of How to configure Chinese interface (Chinese version) in VSCode. For more information, please follow other related articles on the PHP Chinese website!