打開工作區(qū)設置,添加如下代碼即可: //設置用戶選中代碼段的顏色 "workbench.colorCustomizations": { "editor.selectionBackground": "#aa0000" } 如圖: