Sublime Text是否有类似VSCode的选中字符自动高亮插件?
Does Sublime Text have a plugin for auto-highlighting selected text (like VS Code)?
Hey there! Great question—yes, Sublime Text absolutely has plugins that replicate that super convenient VS Code feature where selected text gets automatically highlighted across your file, no need to hit Ctrl+F first. Here are the top options you should check out:
1. Highlight Selected
This is the most popular and straightforward plugin for this exact use case.
- How to install: Open the Command Palette (Ctrl+Shift+P on Windows/Linux, Cmd+Shift+P on Mac), search for
Install Package, then look upHighlight Selectedand install it. - Features: As soon as you select any piece of text, all matching instances in the file will light up. You can tweak settings like:
- Custom highlight color
- Whether to only highlight whole words
- Support for multi-cursor selection (each selected phrase gets its own highlight)
- Quick tip: To adjust the highlight style, go to
Preferences > Settingsand add custom configs like this:{ "highlight_selected_color": "rgba(255, 200, 0, 0.3)", "highlight_selected_word_only": true, "highlight_selected_use_todo": false }
2. Better Highlight
If you want more advanced control, this plugin is a step up from Highlight Selected:
- It supports regex-based matching for more precise highlighting
- Lets you set different colors for different types of matches
- Includes options to ignore case or match across multiple files (if you need that)
- Install it the same way via Package Control—search for
Better Highlight.
A quick note: Make sure you have Package Control installed first if you don't already. You can install it by opening the Command Palette, searching for Install Package Control, and following the prompts.
内容的提问来源于stack exchange,提问作者Johnson
相关产品推荐
相关产品推荐

