Home > Article > Development Tools > How to set the Chinese locale in vscode?
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.
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 language environment:
1. Use the shortcut key [Ctrl Shift P] to achieve it, as shown below:
2. Enter [configure language] in the pop-up search box, and then select the searched [Configure Display Language], as shown below:
3. Then open the locale.json file, you can see that the attribute value of locale is en, as shown below:
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:
Select "zh-CN" here, as shown below:
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:
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:
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:
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!