- 打开vscode
-
左边工具栏点击打开插件图标,然后输入background,如下图:
- install后重启软件
-
打开文件 -> 首选项 -> 设置,搜索background,
- 加入以下设置后,重启VSCode即可。
"update.enableWindowsBackgroundUpdates": true,
"background.customImages": [
"C:/Users/vde/Pictures/20150416H5600_tPhXf.jpeg"],
"background.style":
{
"content":"''",
"pointer-events":"none",
"position":"absolute",//图片位置
"width": "100%",
"height":"120%",
"z-index":"99999",
"background.repeat":"repeat-Y",
"background-size":"cover",//图片大小
"opacity": 0.2 //透明度
},
"background.useFront": true,
"background.useDefault": false, //是否使用默认图片