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 |
|