在VScode安装background插件
b1.PNG
进入底部设置搜索 background
b2.PNG
进入
b3.PNG
下面是代码
{
"eslint.autoFixOnSave": true,
"standard.autoFixOnSave": true,
"ycy.reminderViewIntervalInMinutes": 0.1,
"[html]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
//background 的相关配置
"update.enableWindowsBackgroundUpdates": true,
"background.customImages": [
"D:/课堂截图/timg.jpg"//图片地址路径
],
"background.style": {
"content":"''",
"pointer-events":"none",
"position":"absolute",//图片位置
"width":"100%",
"height":"100%",
"z-index":"0.1",
"background.repeat":"no-repeat",
"background-size":"100%,100%",//图片大小
"opacity":0.2 //透明度
},
"background.useFront": true,
"background.useDefault": false,
"javascript.format.enable": false,
"html.format.indentHandlebars": true,
"editor.formatOnType": true,
"editor.formatOnPaste": true,
}
网友评论