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)

相关推荐
rockey6278 分钟前
AScript如何实现中文脚本引擎
c#·.net·script·eval·expression·function·动态脚本
我是唐青枫2 小时前
C#.NET gRPC 深入解析:Proto 定义、流式调用与服务间通信取舍
开发语言·c#·.net
unicrom_深圳市由你创科技2 小时前
做虚拟示波器这种实时波形显示的上位机,用什么语言?
c++·python·c#
无限进步_2 小时前
【C++】电话号码的字母组合:从有限处理到通用解法
开发语言·c++·ide·windows·git·github·visual studio
计算机安禾3 小时前
【数据结构与算法】第35篇:归并排序与基数排序
c语言·数据结构·vscode·算法·排序算法·哈希算法·visual studio
仟人斩3 小时前
Windows 下把 VSCode 加入右键菜单(注册表方案)
windows·vscode·上下文菜单
蜡台3 小时前
IDEA 一些 使用配置和插件
java·ide·intellij-idea
昵称暂无13 小时前
.NET 高级开发 | i18n 原理、实现一个 i18n 框架
javascript·c#·.net
疯狂成瘾者4 小时前
Chroma向量数据库
开发语言·数据库·c#
我是唐青枫4 小时前
C#.NET Monitor 与 Mutex 深入解析:进程内同步、跨进程互斥与使用边界
开发语言·c#·.net