vscode set code highlight

Initial situation:
Insert picture description here
1. File-"Preferences-"settings
(My local environment has changed from English to Chinese. If you want to change the environment, you can read the previous article.)
Insert picture description here

2. Enter workbench.colorCustomizations in search settings
Insert picture description here
3. Add code

"editor.fontSize": 14, //窗口字号显示
    "editor.minimap.enabled": false,
    "window.zoomLevel": 0, //窗口缩放比例,数值越大,窗口显示越大。
    "workbench.colorCustomizations": {
        "editor.selectionHighlightBackground": "#ff0000"
    }

Insert picture description here

Remarks:
If the Vue code is highlighted, it is simple, just install a vetur plug-in

Insert picture description here
effect:
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_42645716/article/details/105258333