Home  >  Article  >  Development Tools  >  How to configure Chinese interface (Chinese version) in VSCode

How to configure Chinese interface (Chinese version) in VSCode

青灯夜游
青灯夜游forward
2021-06-07 11:32:482320browse

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.

How to configure Chinese interface (Chinese version) in VSCode

[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:

How to configure Chinese interface (Chinese version) in VSCode

#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.

Change display language

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.

How to configure Chinese interface (Chinese version) in VSCode

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.

How to configure Chinese interface (Chinese version) in VSCode

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.

Available locales

##Simplified Chinese繁体中文France GermanItaly Spanish日本North KoreaRussianBulgarianHungaryPortuguese (Brazil)Turkey
Display language Locale
English (US) en
zh -CN
zh-TW
fr
de
it
es
ja
ko
ru
bg
hu
pt-br
tr
##Market Language Pack

As mentioned above, VS Code ships with English as the default display language, but other languages ​​are available through market language packs.

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"

.

How to configure Chinese interface (Chinese version) in VSCodeYou can install multiple language packs and use the "Configure Display Language" command to select the current display language.

Set the language

If you want to use a specific language for your VS Code session, you can use the command line switch

--locale

to specify it when starting VS Code Locales. The following is an example of using the

--locale

command line switch to set the VS Code display language to French: <pre class="brush:js;toolbar:false;">code . --locale=fr</pre>

English original address: https:// code.visualstudio.com/docs/getstarted/locales

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!

Statement:
This article is reproduced at:juejin.cn. If there is any infringement, please contact admin@php.cn delete