How to set the language in vscode?
The first time I used Visual Studio Code (vs code) I didn’t know that it comes with 10 available display languages (regions): English (United States), Simplified Chinese, Traditional Chinese, French, German Chinese, Italian, Japanese, Korean, Russian and Spanish.
Localized display text for all 10 languages is included with the main VS Code download, so no secondary installation is required.
Related recommendations: vscode tutorial
By default, VS code will pick up the display language of the operating system. If it is an unsupported locale, English (US ).
The steps to modify Chinese are as follows
Language settings
1. Shortcut keys
Windows, Linux shortcuts The key is: Ctrl Shift P
macOS shortcut key is: Command Shift P
2. Search: Configure Language or Configure Language
After selection, the locale.json file will be opened
{ // Defines VS Code's display language. // See https://go.microsoft.com/fwlink/?LinkId=761051 for a list of supported languages. "locale":"zh-cn" // Changes will not take effect until VS Code has been restarted. }
After selection, the locale.json file will be opened
When you make an input error when modifying, the available languages will be prompted
When you delete the previous language Settings, when you enter a colon or quotation mark after "locale", you will be prompted with available options
Save the modifications to the locale.json file, close VSCODE, and reopen the language.
Note: The language configuration cannot be found in Settings.json opened in Configuration>Preferences>.
The above is the detailed content of How to set language in vscode. For more information, please follow other related articles on the PHP Chinese website!