Skip to content
| Marketplace
Sign in
Visual Studio Code>Themes>LineColorsNew to Visual Studio Code? Get it now.
LineColors

LineColors

bestiesbesties

|
10 installs
| (0) | Free
Visually group lines of code together.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Version Contribute

LineColors allows you to color the background of any specific line of code.

Usefull as immediate recognition, cross referencing or grouping for different lines of code. The possibilities of simply coloring lines of code could be endless.

This extension is only visual and does not change your files or code.

demo.gif

Features

  • Colors any line in the texteditor to red, green or blue.
  • Shifts colored lines respective to text insertions or deletions.
  • Saves colored lines to tracked filenames in globalstate.
  • Shows active color as editor cursor & in statusbar.
  • Exposes colored lines in the overviewruler.

Commands

Command Description Keybind
lineColors.drop Drop the selected color from the UI to the active selection in the texteditor. ctrl + d
lineColors.switch Iterate between dropable colors chronologically. ctrl + shift + d
lineColors.reset Reset the entire state of the extension, thus clearing coloring on all lines.

References

https://code.visualstudio.com/api/get-started/your-first-extension

https://github.com/microsoft/vscode-extension-samples/tree/main/webview-view-sample

https://stackoverflow.com/questions/76315401/ondidchangeactivetexteditor-not-working-for-custom-text-editor

https://code.visualstudio.com/api/working-with-extensions/publishing-extension

https://code.visualstudio.com/api/references/extension-manifest

https://code.visualstudio.com/api/references/vscode-api#TextDocumentChangeEvent

https://code.visualstudio.com/api/references/icons-in-labels#icon-listing

https://code.visualstudio.com/api/ux-guidelines/status-bar

https://code.visualstudio.com/api/references/vscode-api#FileRenameEvent

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