Home  >  Article  >  Development Tools  >  How to set language in vscode

How to set language in vscode

藏色散人
藏色散人Original
2019-12-17 10:46:1417700browse

How to set language in vscode

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

How to set language in vscode

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!

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