在扩展里面下载插件“background”
再在setting.json中加入以下代码即可
"update.enableWindowsBackgroundUpdates": true,
"background.customImages": [
"file:///E:/picture/b.jpg" //图片的路径,自定义
],
"background.style": {
"content": "''",
"pointer-events": "none",
"position": "absolute", //定位
"width": "100%",
"height": "100%",
"z-index": "99999",
"background.repeat": "true", //是否重复
"background-size": "100%,100%", //图片大小
"opacity":0.1 //透明度
},
"background.useFront": true,
"background.useDefault": false,
"workbench.iconTheme": "vscode-icons", //是否使用默认图片
|