Home  >  Article  >  Development Tools  >  How to set the Chinese locale in vscode?

How to set the Chinese locale in vscode?

青灯夜游
青灯夜游Original
2019-12-30 16:48:464206browse

VSCode is a lightweight and easy-to-use compilation software. The following article will introduce how to change the default English language environment of the software into the Chinese language environment we are familiar with.

How to set the Chinese locale in vscode?

First open the VSCode software, you can see that the VSCode software you just installed uses the English language environment by default, as shown below:

How to set the Chinese locale in vscode?

How to set the Chinese language environment:

1. Use the shortcut key [Ctrl Shift P] to achieve it, as shown below:

How to set the Chinese locale in vscode?

2. Enter [configure language] in the pop-up search box, and then select the searched [Configure Display Language], as shown below:

How to set the Chinese locale in vscode?

3. Then open the locale.json file, you can see that the attribute value of locale is en, as shown below:

How to set the Chinese locale in vscode?

4. Delete the attributes after locale until the colon, and then re-enter A code prompt will automatically appear after the colon, as shown below:

How to set the Chinese locale in vscode?

Select "zh-CN" here, as shown below:

How to set the Chinese locale in vscode?

5. Then save the locale.json file and restart the VSCode software. You can see that it has not changed to the Chinese language environment. That is because the code configuration in locale.json means that the software startup and loading language configuration package is Chinese. , but in fact the VSCode just installed does not have a Chinese language pack, so the Chinese language environment is not displayed here, as shown below:

How to set the Chinese locale in vscode?

6. Follow the red arrow in the picture below Click on the indicated location and point to step 1, then enter Chinese in the pop-up search box, then select [Chinese (Simplified) Language Pack for Visual Studio Code], and then click [Install] on the right, as shown below:

How to set the Chinese locale in vscode?

7. After installing the Chinese language pack, the software will prompt you to restart VSCode. Click [Yes] to restart the VSCode software.

8. After restarting the VSCode software, you will see the familiar Chinese language environment interface, as shown below:

How to set the Chinese locale in vscode?

Related recommendations: vscode Basic tutorial

The above is the detailed content of How to set the Chinese locale in vscode?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn