vscode同时高亮多个字符的插件 | 您所在的位置:网站首页 › vscode高亮匹配括号插件 › vscode同时高亮多个字符的插件 |
1. 安装
直接搜索highlight-words安装即可 在setting中搜索highlight-words,在settings.json中编辑 # highlight颜色设置,可自由设置 "highlightwords.colors": [ { "light": "#b3d9ff", "dark": "cyan" }, { "light": "#e6ffb3", "dark": "pink" }, { "light": "#b3b3ff", "dark": "lightgreen" }, { "light": "#ffd9b3", "dark": "magenta" }, { "light": "#ffb3ff", "dark": "cornflowerblue" }, { "light": "#b3ffb3", "dark": "orange" }, { "light": "#ffff80", "dark": "green" }, { "light": "#d1e0e0", "dark": "red" } ], # 选择highlight方式,light为加文字背景,dark为加外框 "highlightwords.box": { "light": false, "dark": true }, "highlightwords.defaultMode": { "default": 0 } "highlightwords.showSidebar": { "default": true } 3. 使用 ctrl+shift+p进入命令面板,搜索对应命令 其中: Highlight expression: 输入需要高亮的字符串 也可选择需要高亮的字符串,使用Highlight selection highlight remove:移除单个标记 highlight remove all:移除当前文档所有标记 效果如下:
|
CopyRight 2018-2019 实验室设备网 版权所有 |