-
安装插件background,这时配置的背景是插件自带的图片
-
ctrl+shift+p打开首选项设置json文件,找到background配置的地方,修改或添加自定义的图片地址,调整样式。
完整配置如下:
"background.customImages": [
"file:///G:/img/bgc.png" //图片地址
],
"background.style": {
"content": "''",
"pointer-events": "none",
"position": "fixed", //图片位置
"right": 0,
"bottom": 0,
"width": "100%",
"height": "100%",
"z-index": "99999",
"background.repeat": "no-repeat",
"background-size": "100%,auto", //图片大小
"opacity": 0.8 //透明度
},
"background.enabled": true,
"background.useFront": true,
"background.useDefault": false,
-
然后重启编辑器查看效果