设置里搜索
Background:?Custom Images
设置setting如下
{
"workbench.colorTheme": "Monokai",
"security.workspace.trust.untrustedFiles": "open",
"workbench.editorAssociations": {
"*.ipynb": "jupyter-notebook"
},
"notebook.cellToolbarLocation": {
"default": "right",
"jupyter-notebook": "left"
},
//background 的相关配置
"update.enableWindowsBackgroundUpdates": true,
"background.customImages": [
"file:///G:/smile.jpg"//图片地址
],
"background.style": {
"content":"''",
"pointer-events":"none",
"position":"fixed",//图片位置居中
"width":"100%",
"height":"100%",
"z-index":"99999",
"top":"0px",
"left":"0px",
"background.repeat":"no-repeat",
"background-size":"cover",//图片大小为全屏
"opacity":0.2 //透明度
},
"background.useFront": true,
"background.useDefault": false,//是否使用默认图片
}
即可达到图片拉伸至全屏覆盖背景
|