VSCode常用设置
设置背景
- 准备好背景图片
vscode-background.jpg
,放入安装目录C:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench
下。 - 打开文件
C:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\workbench.desktop.main.css
,在最后面(Ctrl + End)添加以下内容并保存。1
2
3
4
5
6
7
8
9
10
11
12body {
pointer-events: auto !important;
background-size: 100% !important;
opacity: 0.9 !important;
background-position: 0 0 !important;
background-image: url("./vscode-background.jpg") !important;
content: "";
position: absolute;
z-index: 999;
width: 100%;
background-repeat: no-repeat;
} - 重启VSCode后生效。