您可以通過三種方法將 VS Code 主題變為白色:更改設置中的配色方案為 “Light+ (default light)”。在 Marketplace 中安裝白色主題,如 White Carbon、Light Night或 Tomorrow Night Light。使用主題編輯器將 “tokenColors” 部分中的 “foreground” 和 “background” 值更改為白色。
如何將 VS Code 主題變為白色
方法 1:更改設置
- 打開 VS Code 設置(Ctrl + , 或 Cmd + ,)。
- 在搜索欄中輸入 “theme”。
- 在 “配色方案” 下拉菜單中選擇 “Light+ (default light)”。
方法 2:安裝白色主題
-
在 VS Code Marketplace 中搜索白色主題,例如:
- White Carbon
- Light Night
- Tomorrow Night Light
- 在 Marketplace 中找到一個您喜歡的主題,然后點擊 “Install” 按鈕。
- 安裝完成后,打開 VS Code 設置并選擇 “Light+ (default light)”。
方法 3:使用主題編輯器
-
打開 VS Code 主題編輯器:
- 在 JSON 文件中找到 “tokenColors” 部分。
- 將 “foreground” 和 “background” 變量的值更改為白色,例如:
"tokenColors": [ { "name": "Foreground", "scope": [], "settings": { "foreground": "#ffffff" } }, { "name": "Background", "scope": [], "settings": { "background": "#ffffff" } } ]
- 保存 JSON 文件。
? 版權聲明
文章版權歸作者所有,未經允許請勿轉載。
THE END