前提:装了background插件,在settings.json中加入以下代码便可自定义背景图片
1.settings.json
"background.fullscreen": { // 设置全屏背景图,不管开多少个侧边栏,只显示一张图
"image": "file:///D:/pictures/ideBackGroundImage.JPG",
"images": [],
"opacity": 0.87,
"size": "cover",
"position": "center",
"interval": 0
},
"background.style": {
"width": "100%",
"height": "100%",
"content": "''",
"pointer-events": "none",
"position": "absolute",
"z-index": "99999",
"background-size": "cover", // 图片大小,cover表铺满
"background-repeat": "no-repeat",
"opacity": 0.2 // 可调节透明度,0->1透明度加大
},
"background.useDefault": false, //不使用默认图片
"background.customImages": [
"file:///D:/pictures/ideBackGroundImage.JPG",
"file:///D:/pictures/ideBackGroundImage.JPG"
]