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)

相关推荐
bugcome_com9 小时前
零基础入门C#:一篇搞懂核心知识点
c#
骥龙11 小时前
第六篇:AI平台篇 - 从Jupyter Notebook到生产级模型服务
ide·人工智能·jupyter
kun2003102912 小时前
如何用Obsidian+VSCode生成文案排版并发布到公众号
ide·vscode·编辑器
程序员敲代码吗13 小时前
如何通过命令行启动COMSOL的参数化、批处理和集群扫描
java·c#·bash
缺点内向14 小时前
C#: 告别繁琐!轻松移除Word文档中的文本与图片水印
c#·自动化·word·.net
喵叔哟15 小时前
06-ASPNETCore-WebAPI开发
服务器·后端·c#
2501_9307077815 小时前
使用 C# .NET 从 PowerPoint 演示文稿中提取背景图片
c#·powerpoint·.net
初级代码游戏16 小时前
套路化编程 C# winform 自适应缩放布局
开发语言·c#·winform·自动布局·自动缩放
大空大地202617 小时前
流程控制语句--switch多分支语句使用、while循环语句的使用、do...while语句、for循环
c#
kylezhao201919 小时前
C#序列化与反序列化详细讲解与应用
c#