A Visual Studio Code extension that allows you to highlight lines of code with customizable colors and opacity levels. Perfect for code reviews, presentations, or keeping track of important sections in your code.
Features
Highlight selected lines of text in your editor
Highlights persist across editor switches
Highlights appear both in the editor and the scrollbar
Customizable highlight color and opacity
Context menu integration
Clear individual highlights or all highlights at once
Installation
Open VS Code
Press Ctrl+P / Cmd+P to open the Quick Open dialog
Type ext install trueaniki.lines-highlight
Press Enter
Usage
Adding Highlights
Select the text you want to highlight
Right-click and select "Lines Highlight: Highlight Selected Lines" from the context menu
Or use the command palette (Ctrl+Shift+P / Cmd+Shift+P) and search for "Lines Highlight: Highlight Selected Lines"
Removing Highlights
To remove a single highlight:
Place your cursor on the highlighted line
Right-click and select "Lines Highlight: Clear Highlight"
To remove all highlights:
Use the command palette and select "Lines Highlight: Clear All Highlights"
Configuration
You can customize the following settings in your VS Code settings:
{
"linesHighlight.highlightColor": "#1c3de3", // The color of the highlight
"linesHighlight.editorHighlightOpacity": 0.1, // The opacity of the highlight in the editor
"linesHighlight.scrollbarHighlightOpacity": 0.3 // The opacity of the highlight in the scrollbar
}
Available Settings
Setting
Description
Default
linesHighlight.highlightColor
The color of the highlight (hex format)
#1c3de3
linesHighlight.editorHighlightOpacity
The opacity of the highlight in the editor (0.0 - 1.0)
0.1
linesHighlight.scrollbarHighlightOpacity
The opacity of the highlight in the scrollbar (0.0 - 1.0)
0.3
Contributing
Found a bug or have a feature request? Please open an issue on the GitHub repository.