第一步:下载安装扩展文件background
![](https://i-blog.csdnimg.cn/blog_migrate/291a64eec470c11283c7e5e11a0d4e4c.png)
第二步:点击文件—首选项—设置
搜索background,并点击background-style的settings.json文件
![](https://i-blog.csdnimg.cn/blog_migrate/00088cb9b743acf4893d754ff1a124a7.png)
添加如下代码:
"background.enabled": true,
"background.useDefault": false,
"background.customImages": [
"file:///C:/Users/Administrator/Desktop/图片/kui.jpg"
//这里的图片地址,就是你存放的图片的位置
],
"background.style": {
"content": "''",
"pointer-events": "none",
"position": "absolute",
"z-index": "99999",
"width": "100%",
"height": "100%",
"background-position": "center",
"background-repeat": "no-repeat",
"background-size": "100%,100%",
"opacity": 0.3
},
我用的这张图片,想和我设置同款壁纸的,直接拿去用哦~~~
![](https://i-blog.csdnimg.cn/blog_migrate/4c566072391d48ce674ef0702f477837.jpeg)
设置好了,看下效果图呦,哈哈哈~~~~~
![](https://i-blog.csdnimg.cn/blog_migrate/6eae5d793c2a0d628732f4a3596ee8ae.png)