1.下载并安装visual Code的插件background,Vusual Code自带的插件中心就有。
2.打开设置中心,搜索background。在默认相关设置中点击前面的“小笔”(编辑),会自动再右边的用户设置中添加相应的代码,或者直接跳过这一步进行第三步

3.用户设置中添加代码
// 配置background
"update.enableWindowsBackgroundUpdates": true,
"background.customImages": ["女朋友.jpg"],
"background.enabled": true,
"background.style": {
"content": "''",
"pointer-events": "none",
"position": "absolute",
"z-index": "99999",
"width": "100%",
"height": "100%",
"background-position": "center",
"background-repeat": "no-repeat",
"background-attachment":"fixed",
" background-size": "cover",
"opacity": 0.35
},
"background.useFront": true,
"background.useDefault": false
4.重启打开
这样敲代码心情就不一样了,当然想让透明点就调整代码里的参数就OK了。
网友评论