AK Workbook Lens - Excel & Data ViewerA local, offline, read-only
Inspect workbooks without leaving your editor: resize columns, freeze headings, search, combine sort/filter rules, manage columns, profile data and inspect full cells/records. Choose the actual header row and jump to original source addresses. Export the current view or selection as CSV/TSV without changing the source. InstallSearch for AK Workbook Lens in VS Code's Extensions panel, or run:
For manual installation, use Extensions: Install from VSIX... and select
Open an Previously named Workbook Lens, the product is now AK Workbook Lens.
The extension ID remains This replaces the development
extension CSV and TSV importCSV/TSV keep their normal text editor by default. Right-click the editor tab and select Reopen Editor With... > AK Workbook Lens (CSV/TSV), or use AK Workbook Lens: Open Workbook to select a file.
Export CSV and TSVChoose CSV or TSV, then Export view for the current worksheet in its filtered/sorted order, or Export selection for the selected rectangle in that view. Hidden columns are omitted, and reordered/pinned columns follow their visible order. A retained header row is included in whole-view exports; introductory rows above a selected header are excluded. Hidden worksheets can be selected and exported just like other worksheets. Exports contain displayed values, not formatting, formulas or other worksheets. Files use UTF-8 without a BOM, CRLF record separators and quoted/escaped fields. Embedded newlines remain unchanged. Exporting an empty view produces an empty file. Choose a new filename: existing files, including the source, are not overwritten. Canceling the save dialog writes nothing. Values are preserved unchanged. If any value starts with a formula-like prefix
( Navigate and select
Formatting and column sizingThe viewer imports workbook column widths, font family/size, bold/italic, underline/strike, font colors, solid fills, basic horizontal/vertical alignment, and number/date formats. Direct RGB and workbook theme colors are supported; theme tints and character-based column widths are approximate. Default dark-theme workbook text on unfilled cells follows VS Code's foreground color so it remains readable in both light and dark themes; explicit font colors and solid fills retain their workbook colors. Drag a column header's right edge to resize it (48-1,200 pixels). Double-click that edge to fit currently loaded visible values, not the entire worksheet. Keyboard users can focus a resize handle and use Left/Right arrows (Shift for larger steps) or Enter to fit. Manual widths take precedence over workbook widths. Widths follow their source columns when columns are reordered or pinned. Column menus and column managementClick a column heading (or focus it and press Enter, Space or Down) to open its actions. The menu provides sorting, filtering, distinct values, profiling, fitting, pinning and hiding; CSV/TSV columns also offer analysis-type interpretation. Escape closes the menu and restores focus. Heading indicators show sort direction and priority, active filters and pinned columns. Column rules expands the advanced form when you need to combine conditions; it starts collapsed. Click Columns to search source letters/header names and manage the layout. Show/hide columns with checkboxes, move them Earlier/Later, or Pin them. Pinned columns move to the left and stay frozen as viewport space permits. Columns move within their pinned/unpinned group; unpin first to cross groups. At least one column must remain visible. Lists are paged in batches of 100 and header labels are limited to 200 characters; inspect the original header cell for its complete value. Copy, search, selection statistics and export use visible column order. Existing filters and sort rules still apply to hidden source columns and remain visible as chips. Hiding is only a layout preference, not a confidentiality boundary: the row inspector can still show hidden fields. Reset columns restores all columns in source order and removes pins without removing sort/filter/type rules. Flexible header rowsEnable Use header row, enter its original one-based row number, then click Apply header. For a report whose title occupies rows 1-2, choose row 3. That row becomes the first retained row; data starts after it. Original addresses and row labels remain unchanged. The header stays out of analysis and filtering, but is included in whole-view exports. The displayed matching-row count excludes both introductions and the retained header. Disable Use header row and apply to view every source row again; no rows are implicitly skipped in that mode. Header selection is remembered per worksheet. The source file is never edited. Cell and row inspectorSelect a cell and click Inspect. The side panel shows the full displayed value, raw/cached value, saved type, analysis type, number format and formula when present. Long and multiline values wrap in selectable, scrollable text rather than being cut off by the grid. Formula values are saved results, not recalculations; missing results are explicitly labeled. Raw dates use ISO/UTC representation. The complete source record appears below, including fields hidden in the grid. Choose 1, 5, 20 or 50 fields per page and use Previous fields/Next fields for wide records. Field labels include original addresses. Inspection follows the selected source row even after sorting, filtering or column reordering. Requests are limited to 2,000,000 characters across displayed/raw values and formulas; oversized requests fail explicitly rather than silently truncating. Use fewer fields per page when a record is too large. A single oversized cell may still exceed this limit. No source values are modified. Freeze panesWorkbook panes imports saved frozen rows/columns. You can instead choose None, Top row, First column, Top row + first column, or Before selected cell (freeze everything above/to the left of the active view cell). Frozen data remains visible while both axes scroll. Large frozen areas are limited to leave space for scrollable data; the control's tooltip shows actual counts and whether the viewport limited them. Sort and filterEnter a column letter (for example
Optional CSV/TSV interpretationSelect a column, choose Interpret column: Number or ISO date, then click
Apply column rules. Text remains the default. Numbers accept optional signs,
decimals and exponents; grouping separators, currency symbols and nonfinite
values are not accepted. Dates must be valid calendar dates in exact Unparseable nonempty values remain text and are counted as Text/unparsed in the profile. Interpreted numbers participate in sorting, comparisons, selection statistics and profiling; dates participate in date sorting/comparisons and date ranges, not numeric sums. Leading zeros, original date strings and formula-like text are preserved in the grid, clipboard and exports. Excel columns use native saved types; this override is offered only for CSV/TSV. Remove comparison filters before removing an interpretation they require, or use Reset view. Column profilingEnter a column letter and click Profile column after applying any pending
rule/type changes. The profile covers current filtered rows, excluding a retained
header. It shows row/blank counts, distinct displayed values (including blank),
counts by interpreted/native type, numeric min/max/sum/average and earliest/latest
dates in UTC. Empty results show no average or range.
Formula cells without a saved result count as text, not blanks; their visible
Distinct counting is bounded to 100,000 values / 2,000,000 characters; if exceeded, the displayed count is labeled at least. It is not a full enumeration of arbitrarily large columns. Profiling never modifies the workbook. Widths, column layout/pins, freeze choices, interpretation and sort/filter settings are remembered per worksheet in VS Code's editor state. The active sheet, cell and viewport survive reloads where possible. External workbook changes automatically reload the file. Open in desktop ExcelOpen in Excel, also available as AK Workbook Lens: Open in Desktop Excel, hands the current local workbook to installed Microsoft Excel on Windows. It does not embed Excel, automate it, save the file, or run it in the background. Excel's normal security prompts and settings apply after the handoff. The action is disabled for remote workspaces and non-Windows environments. If Excel is unavailable or its registered executable cannot be launched, the viewer reports an error. This feature is optional: everything else works without Office. The viewer itself never executes macros or refreshes external connections. Compatibility and limitsSupports Charts, drawings, merged-cell layout, conditional formatting, rich-text runs,
indexed colors, wrapped/rotated text, row heights, hidden-row/column suppression,
pivot interactions and editing are not implemented. Merged-cell content appears
only at its original top-left cell. Unsupported number formats are labeled.
Legacy Password-encrypted and IRM-protected filesAK Workbook Lens cannot open password-encrypted or IRM/rights-managed workbooks. Office compound containers receive specific guidance, but their signature alone does not identify the protection type: legacy Excel files can use the same container. Other unsupported or invalid packages receive a general format error. The error panel offers Open in Excel on local Windows files, even when the viewer cannot load them. This is an explicit handoff, not decryption or an automatic launch. Installed Excel handles passwords, organizational sign-in and rights-management permissions. If Excel is missing, the launch error is reported. On other platforms or remote workspaces, open the original file manually in an authorized Excel client. Your organization's restrictions on viewing, copying, exporting and expiry continue to apply in Excel. Do not remove protection or save an unprotected copy unless your organization permits it. AK Workbook Lens does not request or store passwords, obtain rights-management licenses, or bypass protection. Files are limited to 50 MiB, 2,000,000 populated cells and 10,000 worksheets. Parsing runs in a worker with a 512 MiB JavaScript heap limit and a 30-second startup deadline. These are guardrails, not a guarantee of support for every file below them: compressed workbooks can expand substantially. Rendering is virtualized in both dimensions, including frozen panes, but parsing loads the workbook into memory. Sort/filter operates on the full used row range. Copy and statistics are limited to 100,000 selected cells; copied text to 10 MiB. CSV/TSV import is limited to 2,000,000 fields (including empty fields), 1,048,576 rows and 16,384 columns. Export is limited to 1,000,000 cells and 20 MiB of UTF-8 text per operation; export a smaller selection when necessary. These operations are bounded but not streaming imports of arbitrarily large files. Files are read through VS Code's filesystem API; parsing runs on the workspace extension host, including supported SSH/WSL/Dev Container hosts. Clipboard writes use VS Code's clipboard API. Remote hosts need no Office installation. DevelopmentRequires Node.js 22+ and npm for development and packaging.
The Validate extension workflow checks types, model/extension-host behavior,
the Edge viewer and VSIX packaging on pushes and pull requests. It has read-only
repository permissions and never publishes. Synthetic fixtures in Open this folder in VS Code and press F5 for an Extension Development Host. The bundled extension needs no runtime npm installation. Marketplace identity
Source and issue tracking: https://github.com/alikhawaja/workbook-lens.
For publishing, sign in to the Token-free publishing from GitHub ActionsThe manually triggered Publish Marketplace extension workflow in
Before its first run, create a policy in the publisher dashboard under Trusted Publishing > Create with:
After saving the policy, open the repository's Actions tab, choose Publish
Marketplace extension, and select Run workflow on Architecture
The worker owns the workbook; the extension brokers requests; the webview owns
selection, layout and view preferences. Reload revisions discard outdated
responses, and view epochs prevent stale sheet/search responses from being applied.
Workbook strings use MIT licensed. Runtime dependency notices are in |
