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)

相关推荐
老骥伏枥~21 小时前
C# 运算符优先级易踩坑
c#
西木九21 小时前
win11 vscode 本地 latex 编译(Elsevier举例)
vscode·latex·学术写作
SunnyDays101121 小时前
C# 实战:从 Word 文档中提取指定页面
c#·提取word文档页面·将word页面复制到另一个文档
骆驼爱记录21 小时前
Word通配符技巧:高效文档处理指南
开发语言·c#·自动化·word·excel·wps·新人首发
人工智能AI技术1 天前
智能体元年第一课:使用Microsoft Foundry + AI Toolkit 10分钟构建你的第一个多模态Agent
人工智能·c#
V胡桃夹子1 天前
VS Code / Lingma AI IDE Java 开发攻略手册
java·ide·人工智能
柱子jason1 天前
基于IOT-Tree Server支持的gRPC服务,使用C#开发自己的设备监控客户端
物联网·rpc·c#·自动化·iiot·iot-tree
骆驼爱记录1 天前
Word表格题注自动设置全攻略
开发语言·c#·自动化·word·excel·wps·新人首发
Evonso1 天前
视频转码与切片(HLS)完整教程
c#
Sapphire~1 天前
Linux-14 ubuntu 安装 vscode
linux·vscode·ubuntu