自定义vsCode编辑器背景图片
1.在首选项-设置,切换工作区,搜索background,在setting.json内编辑,粘贴下列代码:
1 {
2 "background.enabled": true,
3 "background.useDefault": false,
4 "background.customImages": [
5 "file:///F:/background1.jpeg",
6 "file:///F:/background2.jpeg",
7 "file:///F:/background3.jpeg"
8 ],
9 "background.style": {
10 "content": "''",
11 "pointer-events": "none",
12 "position": "absolute",
13 "z-index": "99999",
14 "width": "100%",
15 "height": "100%",
16 "background-size": "cover",
17 "background-position": "50% 50%",
18 "background-repeat": "no-repeat",
19 "opacity": 0.1
20 }
21 }
注意!!!
background.customImages数组为要显示的背景图片位置,最多可设置三张

浙公网安备 33010602011771号