VScode版本V1.54.1
VScode界面默认的语言为英语,需要安装简体中文语言包,语言包为插件(Extension)。
安装语言包
- 打开左侧插件栏(
Extensions),在搜索框中输入chinese。

- 选择
Chinese(Simplified)点击右下角的install按钮。 - 安装完毕后,自行重启VScode,或者点击右下角的提示的
restart按钮重启VScode。

- 重启后VScode界面语言已经更改为简体中文。
切换VScode界面的显示语言
VScode支持安装多个语言包,并提供切换已安装语言包功能。
- 打开
显示(View)菜单,选择命令面板(Command Palette)菜单项或(Ctrl+Shift+P)快捷键 打开命令面板。 - 在命令面板中,输入
Configure Display Language,选择Configure Display Language命令,显示已安装的语言包列表。

- 在已安装的语言包列表中选择需要切换的语言包。

- 根据提示重启VScode完成切换。

通过配置文件切换语言
Configure Display Language命令其实修改的是运行时配置参数文件argv.json,该文件位于用户的 VS Code目录中(即.vscode目录)。
通过命令面板输入Preferences: Configure Runtime Arguments命令可直接修改argv.json文件。
将"locale"项的值修改为需要切换的语言包名称(必须已安装)。
argv.json文件内容:
// This configuration file allows you to pass permanent command line arguments to VS Code.
// Only a subset of arguments is currently supported to reduce the likelyhood of breaking
// the installation.
//
// PLEASE DO NOT CHANGE WITHOUT UNDERSTANDING THE IMPACT
//
// NOTE: Changing this file requires a restart of VS Code.
{
// Use software rendering instead of hardware accelerated rendering.
// This can help in cases where you see rendering issues in VS Code.
// "disable-hardware-acceleration": true,
// Enabled by default by VS Code to resolve color issues in the renderer
// See https://github.com/Microsoft/vscode/issues/51791 for details
"disable-color-correct-rendering": true,
// Allows to disable crash reporting.
// Should restart the app if the value is changed.
"enable-crash-reporter": true,
// Unique id used for correlating crash reports sent from this instance.
// Do not edit this value.
"crash-reporter-id": "6bffdc62-784e-4400-828a-835113d7c56f",
"locale": "en"
}
区域语言对照表
| Display Language | Locale |
|---|---|
| English (US) | en |
| Simplified Chinese | zh-CN |
| Traditional Chinese | zh-TW |
| French | fr |
| German | de |
| Italian | it |
| Spanish | es |
| Japanese | ja |
| Korean | ko |
| Russian | ru |
| Bulgarian | bg |
| Hungarian | hu |
| Portuguese (Brazil) | pt-br |
| Turkish | tr |
本文介绍如何在VScode中安装简体中文语言包,包括通过插件安装及使用命令面板进行语言切换的方法,帮助用户轻松实现界面语言的转换。
8919

被折叠的 条评论
为什么被折叠?



