Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Line FilterNew to Visual Studio Code? Get it now.
Line Filter

Line Filter

roblourens

|
424 installs
| (0) | Free
An extension for filtering the lines of a log file in an editor with configurable include/exclude patterns
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Line Filter

demo of "Filter Active Editor" command

Usage

  • Add your patterns to the setting lineFilter.patterns. Example:
"lineFilter.patterns": {
    "debug": {
        "includes": ["[Debug]"],
        "excludes": ["\"category\": \"telemetry\""]
    }
}
  • Focus the editor you'd like to focus. This can be an output channel as well.
  • Run one of these commands:
    • "Filter Active Editor"
    • "Filter Active Editor In Place"
    • "Filter and Watch Active Editor"
      • Only supported for output channels for now
      • It will only be watched as long as the output channel is visible. The TextDocument is disposed when the output channel is closed, so there is nothing for us to watch.

Future work

  • Regex patterns
  • Show patterns in a tree view
  • Enable dynamic enabling/disabling of patterns, auto-updating the filtered content
  • Hint the number of filtered lines, maybe with an editor annotation or codelens. "x lines filtered, click to show". Or a folding range provider
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft