vscode-theme-colors
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseVSCode 主题颜色设置
VSCode Theme Color Settings
概述
Overview
此 skill 提供 VSCode 主题颜色设置的完整参考资料,包括:
- 颜色主题的基本概念和使用方法
- 可自定义的颜色标识符列表
- 如何创建和发布自定义主题
This skill provides complete reference materials for VSCode theme color settings, including:
- Basic concepts and usage of color themes
- List of customizable color identifiers
- How to create and publish custom themes
快速参考
Quick Reference
设置颜色主题
Set Color Theme
json
{
"workbench.colorTheme": "Solarized Dark"
}json
{
"workbench.colorTheme": "Solarized Dark"
}自定义主题颜色
Customize Theme Colors
json
{
"workbench.colorCustomizations": {
"activityBar.background": "#00AA00",
"sideBar.background": "#347890"
}
}json
{
"workbench.colorCustomizations": {
"activityBar.background": "#00AA00",
"sideBar.background": "#347890"
}
}为特定主题设置自定义颜色
Set Custom Colors for Specific Themes
json
{
"workbench.colorCustomizations": {
"[Monokai]": {
"sideBar.background": "#347890"
}
}
}json
{
"workbench.colorCustomizations": {
"[Monokai]": {
"sideBar.background": "#347890"
}
}
}编辑器语法高亮自定义
Customize Editor Syntax Highlighting
json
{
"editor.tokenColorCustomizations": {
"comments": "#229977",
"strings": "#FF0000"
}
}json
{
"editor.tokenColorCustomizations": {
"comments": "#229977",
"strings": "#FF0000"
}
}颜色格式
Color Formats
支持以下十六进制格式:
- (简写,如
#RGB)#e35 - (简写带透明度,如
#RGBA)#e35f - (完整,如
#RRGGBB)#ee3355 - (完整带透明度,如
#RRGGBBAA)#ee3355ff
透明度 = 完全透明, = 完全不透明(默认)
00ffThe following hexadecimal formats are supported:
- (short form, e.g.,
#RGB)#e35 - (short form with transparency, e.g.,
#RGBA)#e35f - (full form, e.g.,
#RRGGBB)#ee3355 - (full form with transparency, e.g.,
#RRGGBBAA)#ee3355ff
Transparency = fully transparent, = fully opaque (default)
00ff完整颜色参考
Complete Color Reference
详见 references/theme-color-reference.md 获取所有可自定义的颜色标识符完整列表。
See references/theme-color-reference.md for the full list of all customizable color identifiers.
创建新主题
Create a New Theme
- 使用 命令生成主题文件
Developer: Generate Color Theme from Current Settings - 或使用 Yeoman 生成器创建主题扩展:
bash
npm install -g yo generator-code yo code
- Use the command to generate a theme file
Developer: Generate Color Theme from Current Settings - Or use the Yeoman generator to create a theme extension:
bash
npm install -g yo generator-code yo code
常用颜色分类
Common Color Categories
基础颜色
Basic Colors
- - 聚焦元素边框
focusBorder - - 整体前景色
foreground - - 文本选择背景
selection.background
- - Focused element border
focusBorder - - Overall foreground color
foreground - - Text selection background
selection.background
窗口边框
Window Borders
- - 活动窗口边框
window.activeBorder - - 非活动窗口边框
window.inactiveBorder
- - Active window border
window.activeBorder - - Inactive window border
window.inactiveBorder
按钮
Buttons
- - 按钮背景
button.background - - 按钮前景
button.foreground - - 悬停背景
button.hoverBackground
- - Button background
button.background - - Button foreground
button.foreground - - Hover background
button.hoverBackground
编辑器
Editor
- - 编辑器背景
editor.background - - 编辑器前景
editor.foreground - - 当前行高亮
editor.lineHighlightBackground
- - Editor background
editor.background - - Editor foreground
editor.foreground - - Current line highlight
editor.lineHighlightBackground
侧边栏
Side Bar
- - 侧边栏背景
sideBar.background - - 侧边栏前景
sideBar.foreground
- - Side bar background
sideBar.background - - Side bar foreground
sideBar.foreground
活动栏
Activity Bar
- - 活动栏背景
activityBar.background - - 活动栏前景
activityBar.foreground
- - Activity bar background
activityBar.background - - Activity bar foreground
activityBar.foreground
状态栏
Status Bar
- - 状态栏背景
statusBar.background - - 状态栏前景
statusBar.foreground
- - Status bar background
statusBar.background - - Status bar foreground
statusBar.foreground