VScode版本V1.54.1

VScode界面默认的语言为英语,需要安装简体中文语言包,语言包为插件(Extension)。

安装语言包

  • 打开左侧插件栏(Extensions),在搜索框中输入chinese
image + 选择`Chinese(Simplified)` 点击右下角的`install`按钮。+ 安装完毕后,自行重启VScode,或者点击右下角的提示的`restart`按钮重启VScode。 image + 重启后VScode界面语言已经更改为简体中文。

切换VScode界面的显示语言

VScode支持安装多个语言包,并提供切换已安装语言包功能。

  • 打开显示(View)菜单,选择命令面板(Command Palette)菜单项或(Ctrl+Shift+P)快捷键 打开命令面板。+ 在命令面板中,输入Configure Display Language,选择Configure Display Language命令,显示已安装的语言包列表。
image + 在已安装的语言包列表中选择需要切换的语言包。 image + 根据提示重启VScode完成切换。 image

通过配置文件切换语言

Configure Display Language命令其实修改的是运行时配置参数文件argv.json,该文件位于用户的 VS Code目录中(即.vscode目录)。
通过命令面板输入Preferences: Configure Runtime Arguments命令可直接修改argv.json文件。

"locale"项的值修改为需要切换的语言包名称(必须已安装)。

argv.json文件内容:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// 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 LanguageLocaleEnglish (US)enSimplified Chinesezh-CNTraditional Chinesezh-TWFrenchfrGermandeItalianitSpanishesJapanesejaKoreankoRussianruBulgarianbgHungarianhuPortuguese (Brazil)pt-brTurkishtr