Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>keepHighLightNew to Visual Studio Code? Get it now.
keepHighLight

keepHighLight

limingfang

|
4 installs
| (1) | Free
The KeepHighlight plugin is an auxiliary tool for reading code. When you place the cursor on a variable or method and execute this command, all occurrences of the element within its current scope in the file will be highlighted with a background color. Simultaneously, the sidebar will mark the locat
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

保持高亮插件 keepHighlight

指令:hl:hl command: hl:hl

光标放在变量或者方法上执行此指令,执行后,在此文件中的当前作用域中此元素出现的所有地方背景色高亮,同时侧边栏会标记出高亮位置。 光标放在高亮的部分,再次执行指令,高亮取消,侧边栏高亮位置也会取消。

在标记颜色后,鼠标移动,点击其他行,不会影响颜色的显示,颜色一直保留,直到关闭此文件或者主动取消高亮。

主要用于查看复杂代码中的某个元素或者方法出现的地方

Place the cursor on a variable or me thod and execute this command. After execution, all occurrences of the element within its current scope in the file will be highlighted with a background color. Simultaneously, the sidebar will mark the locations of these highlights.

If the cursor is placed on a highlighted section and the command is executed again, the highlighting will be removed, and the corresponding markers in the sidebar will also disappear.

Once the color markers are applied, moving the mouse or clicking on other lines will not affect the display of the highlights. The highlights will remain until the file is closed or manually cleared.

This feature is primarily designed to help users track the occurrences of specific elements or methods in complex code.

指令:hl:rm command: hl:rm

删除当前文件所有高亮

Remove all highlights in current file

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft