gpt4 book ai didi

javascript - 如何在 Visual Studio Code 中基于主题定义 editor.selectionBackground ?

转载 作者:行者123 更新时间:2023-12-02 23:05:25 27 4
gpt4 key购买 nike

在我的 settings.json 中,我有以下内容。

  "workbench.colorCustomizations": {
"editor.selectionBackground": "#EBFF38", //light theme
"editor.selectionHighlightBackground": "#AEFF95", //light theme
//"editorBracketMatch.background": "#ff0000", //dark theme
//"editorBracketMatch.border": "#ff00ff", //dark theme
},

每天晚上我都需要评论顶部的前两行

每天早上我都需要评论底部的前两行

有什么方法可以自动执行此操作吗?选择主题时?

请指教,谢谢

最佳答案

"workbench.colorCustomizations": {
"[your light theme name]": {
"editor.selectionBackground": "#EBFF38", //light theme
"editor.selectionHighlightBackground": "#AEFF95", //light theme
},
"[your dark theme name]": {
"editorBracketMatch.background": "#ff0000", //dark theme
"editorBracketMatch.border": "#ff00ff", //dark theme
},
[rest of your colorCustomizations]
}

参见vscode docs: customizing a color theme .

关于javascript - 如何在 Visual Studio Code 中基于主题定义 editor.selectionBackground ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57608619/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com