Vscode设置背景图(自定义透明度背景图)

1:插件搜索background并安装

2:设置

  1. 首选项
  2. 设置
  3. 搜索background
  4. 点击在setting.json中编辑
{
    "workbench.activityBar.visible": true,
    "editor.tabSize": 2,
    "window.zoomLevel": 1,
    "diffEditor.ignoreTrimWhitespace": false,
    "todo-tree.tree.showScanModeButton": false,
    "workbench.colorTheme": "Monokai Dimmed",
    "workbench.iconTheme": "vscode-icons",
    "background.customImages":[        //背景图片
        // "http://i0.sinaimg.cn/gm/2015/0218/U10787P115DT20150218131050.jpg",
        "https://i.loli.net/2018/06/29/5b35d75e58fde.png",
        "https://i.loli.net/2018/06/29/5b35d7383694b.png"
    ],
    "background.style": {
        "content": "''",
        "pointer-events": "none",
        "position": "absolute",
        "right": "0",
        "bottom": "0",
        "width": "100%",
        "height": "100%",
        "z-index": "9999",
        "background-size": "contain",
        "opacity": 0.2,                //控制透明度
    },
    "background.useDefault": false,    //是否使用默认图片
    "files.autoSave": "off",
    "terminal.integrated.rendererType": "dom",
    "git.autofetch": true,
    "editor.quickSuggestions": {
        "strings": true
    }
}

 

你可能感兴趣的:(VSCode)