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