分享

VScode:将VScode界面的显示语言改为简体中文,切换VScode界面的显示语言_vscode设置中文

 求知881 2023-07-27 发布于河南

VScode版本V1.54.1

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

安装语言包

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

切换VScode界面的显示语言

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

  1. 打开显示(View)菜单,选择命令面板(Command Palette)菜单项或(Ctrl+Shift+P)快捷键 打开命令面板。
  2. 在命令面板中,输入Configure Display Language,选择Configure Display Language命令,显示已安装的语言包列表。
    在这里插入图片描述
  3. 在已安装的语言包列表中选择需要切换的语言包。
    在这里插入图片描述
  4. 根据提示重启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 LanguageLocale
English (US)en
Simplified Chinesezh-CN
Traditional Chinesezh-TW
Frenchfr
Germande
Italianit
Spanishes
Japaneseja
Koreanko
Russianru
Bulgarianbg
Hungarianhu
Portuguese (Brazil)pt-br
Turkishtr

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多