1.仅工作区
第一步:以管理员身份运行vscode
第二部:下载background插件
第三步:找到以下位置
第四步:修改配置
代码段:
{
"update.enableWindowsBackgroundUpdates": true,
"background.customImages": [
"file:///D:/tool/vscode/285c.jpeg" //图片的路径
],
"background.style": {
"content": "''",
"pointer-events": "none",
"position": "absolute", //定位
"width": "100%",
"height": "100%",
"z-index": "99999",
"background.repeat": "no-repeat", //是否重复
"background-size": "100%,100%", //图片大小
"opacity": 0.3 //透明度
},
"background.useFront": true,
"background.useDefault": false, //是否使用默认图片
}
第五步:重启vs
2.全屏
第一步:下载background-cover插件
第二步:点击以下位置
第三步:选择图片,最后选择yes
第四步:重启vs