Supermila Log LensA VS Code extension for navigating logs by time, visualizing elapsed time, and highlighting keyword matches. Existing theme and syntax colors are preserved. InstallationRequires VS Code 1.85.0 or later.
The current interface uses Chinese command names, status text, and hover messages. English equivalents are provided below; this documentation does not change the interface language. Jump to a timeOpen a log, press Ctrl+Alt+T (macOS: Cmd+Alt+T), enter The matching line is centered in the editor. Without an exact match, the closest timestamp is selected; equal distances favor the first line in the file. Dates are ignored when navigating, but fractional seconds in the log affect distance calculations. Repeated clock times in multi-day logs can therefore match an earlier day. Command Palette: 日志:跳转到时间 (“Log: Jump to Time”). To customize the shortcut, search for Green elapsed-time barsSelect multiple log lines with the mouse. Green bars appear under timestamps and update as the selection changes.
Example: When both timestamps include dates, calculations support crossing midnight. Without complete dates, times are compared within the same day; midnight rollover cannot be inferred. Precision is milliseconds. Persistent keyword highlightingLines containing any configured keyword receive a subtle blue background, independently of the selection. Supported documents: To configure through the UI, open Settings with Ctrl+,, search for Alternatively, add these properties to the project's
Matching is case-sensitive literal text, not a regular expression. Matching any keyword highlights the line. Blank keywords are ignored; User settings apply across projects. Workspace and folder settings override them; arrays replace the inherited list instead of merging. In multi-root workspaces, each log uses settings for its containing folder. Toggle individual keywordsWith a log open, click 高亮 x/y (“Highlight x/y”) at the bottom left, or run 日志:选择高亮关键词 (“Log: Select Highlight Keywords”) from the Command Palette. Check to enable a keyword; uncheck to temporarily disable it. Enter saves and Escape cancels. Keywords remain registered, and you can uncheck all items. Choices are saved in
Timestamp support and limitationsRecognized examples:
Each line uses its first recognized timestamp. Up to nine fractional digits are accepted and truncated to milliseconds for calculations. Times are compared as written; timezone suffixes are not converted. Unix timestamps and textual month formats such as Time navigation searches the current document, including unsaved text and unsorted logs. Searches can be cancelled. If the document changes during input or scanning, rerun the command. Larger files and selections can take longer to process. Keyword decorations are applied near visible lines and refreshed when scrolling. Decorations do not modify log contents. DevelopmentNo npm dependencies need to be installed. Use Node.js supporting
The VSIX is generated in |