安装插件【Sublime VSCode Theme】后配置如下:
{
"files.autoSave": "onFocusChange",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"workbench.colorCustomizations": {
"editor.background": "#272822",
// 侧边栏整体背景色
"sideBar.background": "#3C3F41",
"sideBar.foreground": "#FFFFFF", // 侧边栏默认文字颜色
// 文件资源管理器(目录和文件)
"list.activeSelectionBackground": "#4E5254", // 选中项背景色
"list.inactiveSelectionBackground": "#3C3F41", // 非活动选中项背景色
"list.hoverBackground": "#607d8b", // 悬停项背景色
"list.activeSelectionForeground": "#FFFFFF", // 选中项文字颜色
"list.inactiveSelectionForeground": "#FFFFFF", // 非活动选中项文字颜色
// 活动栏(左侧图标栏)
"activityBar.background": "#3C3F41", // 图标栏背景色
"activityBar.foreground": "#FFFFFF", // 图标颜色
"activityBar.activeBorder": "#FFFFFF", // 活动图标边框色
"activityBar.activeBackground": "#4E5254", // 活动图标背景色
// 其他辅助色
"sideBarSectionHeader.background": "#3C3F41", // 分组标题背景色
"sideBarTitle.foreground": "#FFFFFF", // 标题文字颜色
// 选项卡栏背景色
"editorGroupHeader.tabsBackground": "#2d2d2d",
// 活动选项卡背景色
"tab.activeBackground": "#4E5254",
// 非活动选项卡背景色
"tab.inactiveBackground": "#252525",
// 选项卡边框色(可选)
"tab.border": "#444444"
},
"workbench.iconTheme": "vscode-jetbrains-icon-theme-2023-auto",
"editor.minimap.enabled": true,
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"editor.formatOnSave": true,
"[python]": {
"editor.defaultFormatter": "mikoz.black-py"
},
"files.saveConflictResolution": "overwriteFileOnDisk",
"workbench.colorTheme": "Sublime VSCode Theme"
}