Use the shortcut key [Ctrl Shift P], enter [configure language] in the pop-up search box, and then select the searched [Configure Display Language], as shown below:
Then open the locale.json file, delete the attributes after locale until the colon, and then re-enter the colon, a code prompt will automatically appear, select "zh-CN" here
Then save the locale.json file and restart the VSCode software.
(Recommended tutorial: vscode tutorial)
Then click on step 1 at the location indicated by the red arrow in the picture below, then enter Chinese in the pop-up search box, and then Select [Chinese (Simplified) Language Pack for Visual Studio Code], and then click [Install] on the right, as shown below:
After installing the Chinese language pack, the software will prompt Restart VSCode and click [Yes] to restart the VSCode software. After restarting the VSCode software, you will see the familiar Chinese language environment interface.
For more programming related content, please pay attention to the Programming Introduction column on the php Chinese website!
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!