首頁  >  文章  >  開發工具  >  淺析VSCode中怎麼配置背景圖(外掛分享)

淺析VSCode中怎麼配置背景圖(外掛分享)

青灯夜游
青灯夜游轉載
2022-05-23 20:44:598223瀏覽

VSCode中怎麼配置背景圖片?以下這篇文章跟大家介紹一下VScode中透過外掛設定背景圖片的方法,希望對大家有幫助!

淺析VSCode中怎麼配置背景圖(外掛分享)

VScode設定背景圖片的方法

#1、在vscode擴充中,找到background這個外掛並安裝。 【推薦學習:《vscode入門教學》】

#2、開啟settings.json設置,設定自己喜歡的背景圖片

開啟檔案>首選項>設定

#
    // background相关配置 Start

    "background.useDefault": false,  // 是否使用默认图片,改成false不默认,设置自己想要的
    "background.style": {
        "content": "''",
        "pointer-events": "none",
        "position": "absolute",
        "bottom": "0px",
        "right": "0",
        "z-index": "99999",
        "width": "100%",
        "height": "100%",
        "background-position": "0% 0%",
        "background-size": "cover",
        "background-repeat": "no-repeat",
        "opacity": 0.3
    },
    "background.customImages": [
        "file:///C:/VSCodeBackground/ram1.jpg",  //图片的路径地址 ,最多 3张
        // "file:///D:/VSCodeBackground/ram2.png",
        // "file:///D:/VSCodeBackground/ram3.jpg",
    ],
    // background相关配置 End

3、效果

  • #4、設定背景圖後,Vscode標題列出現【不受支援】提示的解決
  • 擴充商品:Fix VSCode Checksums


 安裝好插件後###ctrl shift p### 指令面板:輸入指令,重新啟動後就好了###
Fix Checksums: Apply
###注意: ############安裝和設定後要重新啟動vscode#############以管理員身分執行vscode###########安裝後有報錯,設定不再提示就好############更多關於VSCode的相關知識,請造訪:###vscode教學###! ######

以上是淺析VSCode中怎麼配置背景圖(外掛分享)的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文轉載於:csdn.net。如有侵權,請聯絡admin@php.cn刪除