Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Lines HighlightNew to Visual Studio Code? Get it now.
Lines Highlight

Lines Highlight

trueaniki

|
72 installs
| (2) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Lines Highlight

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

  1. Open VS Code
  2. Press Ctrl+P / Cmd+P to open the Quick Open dialog
  3. Type ext install trueaniki.lines-highlight
  4. Press Enter

Usage

Adding Highlights

  1. Select the text you want to highlight
  2. 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:
    1. Place your cursor on the highlighted line
    2. 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.

License

This extension is licensed under the MIT License.

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