VSCode - 插件: 高亮显示选中的目标

找到两个,第一个是:highlight-words,by Richard Bondi。

This extension is adapted from the sample VS code extension decorator-sample, inspired by atom-quick-highlight.

It creates a decoration for each selected word that appears in all editors.

Usage

* You can add words by chosing Highlight Toggle Current from the command pallet, this will highlight the word at the cursor or the selection.

* To stop highlighting, choose Highlight Remove, then the desired word or expression, or all

* You may also remove all from the command Highlight Remove All without the prompt for selection

* To highlight using regular expression choose Highlight Expression and enter expression(slashes optional, can ignore case with /expression/i(g flag is automatic, i flag accepted, all others ignored).

* To highlight with options choose Highlight Selection with Options and choose whole word, ignore case or both when presented

* You can set the mode for "Highlight Toggle Current" from the Set Highlight Mode command. The default can be set in the configuration.

* Sidebar can show in explorer view and can be toggled on and off with Highlight Toggle Sidebar command. This provides features such as navigating highlighted items, context menu for changing options and removing.

Configuration

The following options can be configured

highlightwords.colors: this is an array of light/dark pairs for respective theme types, you can have as few or as many as you like

highlightwords.box: show highlights as a box around the selections if true, set highlight as background color if false

highlightwords.defaultMode: the initial mode when initialized. 0=default, 1=whole word, 2=ignore case, 3=whole word and ignore case

highlightwords.showSidebar provides a view in the explorer window for searching, changing options and removing highlights

defaults shown below

"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" }

...

],

"highlightwords.box": {

"light": false,

"dark": true

},

"highlightwords.defaultMode": {

"default": 0

}

"highlightwords.showSidebar": {

"default": true

}

==============================================

还有第二个插件,highlight,by debugpig。

这个用起来也挺方便的,快捷键设置和SourceInsight一样哦。

该插件可将选中的单词进行高亮。

Features

* 支持选中/取消单词高亮(shift+F8)

* 支持全量取消单词高亮(ctrl+shift+F8)

Extension Settings

* highlight.configuration.wholeWord: 是否完整单词匹配(boolean)

* highlight.configuration.ignoreCase: 是否完整忽略大小写匹配(boolean)

* highlight.configuration.colors: 高亮的颜色配置(array)

相关推荐
加号31 小时前
【C#】 串口通信技术深度解析及实现
开发语言·c#
秋雨雁南飞2 小时前
Visual Studio 常用扩展
ide·visual studio
无风听海3 小时前
C# 隐式转换深度解析
java·开发语言·c#
LateFrames4 小时前
520 - 如何说晚安 (WPF)
c#·wpf·浪漫·ui体验
魔法阵维护师4 小时前
从零开发游戏需要学习的c#模块,第十四章(保存和加载)
学习·游戏·c#
X1A0RAN6 小时前
解决Pycharm中部分文件或文件夹被隐藏不展示问题
ide·python·pycharm
Xin_ye100868 小时前
C# 零基础到精通教程 - 第十一章:LINQ——语言集成查询
开发语言·c#
Xin_ye100868 小时前
C# 零基础到精通教程 - 第十章:集合与泛型——高效管理数据
开发语言·c#
魔法阵维护师10 小时前
从零开发游戏需要学习的c#模块,第十一章(rpg小游戏入门,上篇,地图与移动)
学习·游戏·c#
雪豹阿伟10 小时前
8.C# —— 随机数、DateTime时间、字符串
c#·上位机