Skip to content

sr-tream/vscode-inline-codelens

Repository files navigation

Inline CodeLens README

Demo

This extension displays CodeLenses inline, at the end of the line, providing a less intrusive way to view code information.

Features

  • Displays CodeLenses inline.
  • Supports a dedicated hover provider mode.
  • Hover provider modes: Hover Only, Gutter Badges, and Hover + Inlay Hints.
  • Gutter badges use color cues for multi-lens symbols, multi-symbol lines, and unused items.
  • When the built-in editor.codeLens is enabled, it prompts the user to disable it for a better experience.
  • Customizable limit for the number of CodeLenses to display.
  • Debounce mechanism to improve performance on document changes.
  • Customizable font decoration for the CodeLenses.

Extension Settings

This extension contributes the following settings:

  • inline-codelens.limit: The maximum number of CodeLenses to show. Set to -1 for no limit.
  • inline-codelens.debounceDelay: The debounce delay in milliseconds for refreshing CodeLenses on document change.
  • inline-codelens.fontDecoration: The CSS text decoration to apply to the inline CodeLenses.
  • inline-codelens.provider: The provider to use for displaying inline CodeLenses. Can be Decorations, Inlay Hints, or Hover.
  • inline-codelens.hoverMode: How the Hover provider presents CodeLenses. Hover Only keeps them in hover, Gutter Badges adds gutter markers, and Hover + Inlay Hints also contributes non-clickable inlay hints.

Release Notes

See the CHANGELOG.md file for details on each release.

Enjoy!

Icon generated by "Imagen" AI model by Google.

About

Show codelens in current line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors