1 安裝background擴展
1.1 操作流程 文件-> 首選項 -> 擴展 -> 輸入background 點擊安裝
1.2 選擇最左側工具欄選擇擴展 輸入background 點擊安裝
2 設置 background
1.1 調出流程 文件-> 首選項 -> 擴展 -> 找到background ->點擊有下家的配置按鈕 -> 配置擴展設置
點擊下圖紅色框
1.2 按f1,輸入setting.json ,選擇首選項: 打開設置
在json中輸入如下內容,位置隨便
// 設置背景圖片並且設置透明度 開始
"background.enabled": true,
"background.useDefault": false,
"background.customImages": [
"file:///C:/SUNYAN/pycharmBackground/pycharm1.jpg",
"file:///C:/SUNYAN/pycharmBackground/timg2.jpg",
"file:///C:/SUNYAN/pycharmBackground/timg3.jpg"
],
"background.style": {
"content": "''",
"pointer-events": "none",
"position": "absolute",
"z-index": "99999",
"width": "100%",
"height": "100%",
"background-position": "center",
"background-repeat": "no-repeat",
"background-size": "100%,100%",
"opacity": 0.2
// 設置背景圖片並且設置透明度 結束
上述代碼重要位置解說:
“opacity” 重要參數設置透明度,如果不設置很遺憾,你的vs桌面只剩下圖片了,代碼神馬的就不要想看見了
"background.enabled": true,是插件是否啓用, true 啓用
"background.useDefault": false,是否使用默認圖片,改成false,不默認,這個條件爲false才能自己設定圖片
"background.customImages" 添加本地圖片組,據說數組長度最大爲三,但是爲什麼要設置那麼多呢
"background.customImages": [
"file:///C:/SUNYAN/pycharmBackground/timg3.jpg"],
“opacity” 重要參數設置透明度,如果不設置很遺憾,你的vs桌面只剩下圖片了
其他參數如沒有特殊癖好的,瞭解一下就好