vs code设置好看的背景图片

  • 时间:2019-08-22 03:35 作者:羽翼的翼 来源:羽翼的翼 阅读:979
  • 扫一扫,手机访问
摘要:vs code设置好看的背景图片,生成效果如下:bg.jpg第一步,找到settings.json文件假如不知道在哪里找到可以参考下面的步骤设置 扩展 CSS 右边的settings.json按照图片进行到第四步 而后点击进去settings.jpg第二步,在setting.json中写样

vs code设置好看的背景图片,生成效果如下:


bg.jpg

第一步,找到settings.json文件

假如不知道在哪里找到可以参考下面的步骤

设置--扩展--CSS -- 右边的settings.json

按照图片进行到第四步 而后点击进去


settings.jpg

第二步,在setting.json中写样式

 "background.customImages": [        "file://D:/vscode/config/bg.png"    ],    "background.style": {        "content":"''",        "pointer-events":"none",        "position":"absolute",//图片位置        "width":"100%",        "height":"100%",        "z-index":"99999",        "background.repeat":"no-repeat",        "background-size":"70%, 50%",//图片大小        "opacity":0.2 //透明度    },    "background.useFront": true,    "background.useDefault": false //能否使用默认图片

注意:file://D:/vscode/config/bg.png这个是背景图片的地址

我的settings.json所有代码如下

{    "editor.renderIndentGuides": false,    "editor.tabSize": 2,    "eslint.autoFixOnSave": true,    "window.zoomLevel": 0,    "git.autofetch": true,    "workbench.colorTheme": "Visual Studio Dark",        "vscode_custom_css.policy": true,    "terminal.integrated.rendererType": "dom",    "material-icon-theme.activeIconPack": "vue",    "background.customImages": [        "file://D:/vscode/config/bg.png"    ],    "background.style": {        "content":"''",        "pointer-events":"none",        "position":"absolute",//图片位置        "width":"100%",        "height":"100%",        "z-index":"99999",        "background.repeat":"no-repeat",        "background-size":"70%, 50%",//图片大小        "opacity":0.2 //透明度    },    "background.useFront": true,    "background.useDefault": false //能否使用默认图片}

编辑好了之后,重启vscode,好看的背景图片样式就生成了

  • 全部评论(0)
最新发布的资讯信息
【系统环境|】通义万相wan2.2本地部署要求有哪些?通义万相wan2.2怎么本地部署(2025-10-21 04:05)
【系统环境|】Vue3 页面卡顿严重?7 个实战技巧让渲染速度飙升 80%!(2025-10-21 04:01)
【系统环境|】前端小白 2 周 Vue3+TS+NaiveUI 学习计划大纲(2025-10-21 04:00)
【系统环境|】Vue3 入门指南: 深入理解 Setup 函数(2025-10-21 03:59)
【系统环境|】2024前端面试真题之—VUE篇(2025-10-21 03:58)
【系统环境|】搞懂Vue3的toRefs与toRef:响应式对象的解构(2025-10-21 03:55)
【系统环境|】三.不定词副词的用法(2025-10-21 03:53)
【系统环境|】歌曲中汉字的信息量真的是吊打英语(2025-10-21 03:52)
【系统环境|】跟着《肖申克的救赎》学英语(002)--安迪法庭受审(2025-10-21 03:52)
【系统环境|】词根词缀-前缀1-27: de-(2025-10-21 03:50)
手机二维码手机访问领取大礼包
返回顶部