Skip to content
LambogeniusDocs

Tar.gz Viewer

Commands and settings

The command, the custom editor, the setting, and the requirements.

VS Code extensionlambogenius.tar-gz-viewerFree · MIT license

What the extension adds

ItemValueNotes
Custom editorTar.gz Viewer (tarGzViewer.archive)Default editor for files matching *.gz and *.tgz. Read-only.
CommandTar.gz Viewer: Open File from Archive... (tarGzViewer.openEntry)From the Explorer: lists the right-clicked archive. From the Command Palette: asks for an archive first.
Explorer menuOpen File from Archive...Shown when you right-click a file whose name ends in .gz or .tgz.
VS Code1.85 or later

Setting

SettingDefaultMeaning
tarGzViewer.maxArchiveSizeMB512Maximum decompressed archive size, in MB, that the viewer loads.

Change it in Settings (search for Tar.gz Viewer) or in settings.json:

{
  "tarGzViewer.maxArchiveSizeMB": 1024
}

The limit applies to the decompressed size, which can be many times the size of the file on disk. A larger limit uses more memory.

Caching

The viewer keeps the last five archives it read in memory, so opening several files from one archive is fast. An archive is read again when its modification time changes.