1.vscode編輯設置窗口透明
- 首先要在vs code的應用商店里面下載一個插件Windows opacity了讨,然后安裝插件Windows opacity缴淋。
- 安裝完成之后在設置里面搜索
winopacity.opacity
,會出現(xiàn)一個窗口,數(shù)值越小越透明,范圍實在0-255瑟俭,然后就實現(xiàn)窗口透明效果了。
image.png
2.vscode窗口設置背景圖
+首先也要下載一個插件background
契邀,然后在設置里面搜索background摆寄,選擇在setting.json中設置。
image.png
將代碼復制粘貼進去就好了坯门,圖片地址記得改成自己喜歡的圖片地址微饥。
"git.ignoreMissingGitWarning": true,
"window.zoomLevel": 0,
"explorer.confirmDelete": false,
"files.autoSave": "onWindowChange",
"files.autoSaveDelay": 0,
"update.enableWindowsBackgroundUpdates": true,
"background.customImages": [
"file:///D:/pic/123.jpg"http://圖片地址
],
"background.style": {
"content":"''",
"pointer-events":"none",
"position":"absolute",//圖片位置
"width":"100%",
"height":"100%",
"z-index":"99999",
"background.repeat":"no-repeat",
"background-size":"100%,100%",//圖片大小
"opacity":0.2 //透明度
},
"background.useFront": true,
"background.useDefault": false,//是否使用默認圖片
"liveServer.settings.donotShowInfoMsg": true,
"workbench.colorTheme": "Monokai",
"editor.quickSuggestions": {
"strings": true
},
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"winopacity.opacity": 240 //設置窗口透明度。
}
最終效果
image.png