VS Code || Visual Studio Code 修改、添加背景图片的方式
第一步,打开扩展工具
第二步,搜索:background,安装
第三步,左上角打开文件→首选项→设置
第四步,点击右上角中的“{}”,这个按钮,展开JSON模式设置
第五步,配置相应设置,配置以及效果图如下:
{
"background.customImages": [
//最多设置三个图片
"file:///D:/UpupooResource/2000090592/image/bg.png",
"file:///D:/UpupooResource/2000092302/image/bg.png"
],
"background.style": {
"content": "''",
"pointer-events": "none",
"position": "absolute",
"width": "100%",
"height": "100%",
"z-index": "99999",
"background.repeat": "no-repeat",
"background.position": "100% 100%",
"background-size": "100% 100%",
"opacity": 0.1
},
//是否启用默认图片
"background.useDefault": false,
"background.useFront": true,
"editor.fontSize": 16,
"editor.fontWeight": "400",
}