1. 打开File>Preferences->settings
  2. 找到workbench.colorCustomizations
  3. 修改setting.json
1
2
3
4
5
6
{
"editor.renderLineHighlight": "all",
"workbench.colorCustomizations":{
"editor.selectionHighlightBackground": "#9805ec",
"editor.lineHighlightBorder": "#ff0000",
}