Javascript 如何基于主题在Visual Studio代码中定义editor.selectionBackground?

Javascript 如何基于主题在Visual Studio代码中定义editor.selectionBackground?,javascript,visual-studio-code,Javascript,Visual Studio Code,在my settings.json中,我有以下内容 "workbench.colorCustomizations": { "editor.selectionBackground": "#EBFF38", //light theme "editor.selectionHighlightBackground": "#AEFF95", //light theme //"editorBracketMatch.background": "#ff0000", //dark

在my 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]
}

请参阅。

有两个版本的vs代码,即主版本和内部版本。白天使用主版本,晚上使用内部版本。