Shell Formatter for Bash & Zsh icon

Shell Formatter for Bash & Zsh Pro Available

Format bash, sh, zsh, bats and mksh scripts in VS Code with shfmt built in. The shfmt engine ships inside the extension as WebAssembly, so there is nothing to download or install. Free, no sign-in, works offline.

MIT / Free Core · Zero telemetry · Works offline · Published by zovo

Pro adds Format all shell scripts in a folder and Formatting check with a patch file. Get Zovo Pro, $19 once →

Version
0.1.4
VS Code Installs
32
Open VSX Downloads
520
Updated
2026-11-20
Extension ID
zovo.zovo-shell-formatter
Editors
VS Code, Cursor, Windsurf, VSCodium
Quick install CLI (VS Code · Cursor · Windsurf)
code --install-extension zovo.zovo-shell-formatter
cursor --install-extension zovo.zovo-shell-formatter
windsurf --install-extension zovo.zovo-shell-formatter

Why use it

  1. Format Document (Shift+Alt+F, Shift+Option+F on macOS), Format Selection and format on save.
  2. The same output as the shfmt 3.14.1 command line tool, byte for byte: 354 of 354 runs on 178 real scripts from GitHub projects and Homebrew, with two option sets. The 19 scripts that shfmt itself rejects get the same error.
  3. Reads the shfmt keys from .editorconfig, so the editor, your team and CI agree.
  4. A syntax error leaves the file unchanged and shows the line and column in the Problems panel.
  5. Same commands check: before a change is applied, the formatted script is parsed again and must run the same commands as the original.
  6. Never touches Dockerfiles, .env files, fish or csh scripts.
  7. A 2 MB script formats in about 0.2 s. Files over 10 MB get a message instead of a frozen editor.

Common questions

What is free in Shell Formatter?

Format Document (Shift+Alt+F, Shift+Option+F on macOS), Format Selection, format on save, dialect detection, .editorconfig support and the status bar menu, with no sign-in. shfmt 3.14.1 is built in as WebAssembly, so there is nothing to download or install.

What does Zovo Pro add?

Three tools, each with 3 free tries on this computer: Format All Shell Scripts in a Folder, Formatting Check with a Patch File (one unified diff and the shfmt -d command for CI) and Minify a Script to a Copy (writes name.min.sh and keeps the original). A try is used only when the tool gives you a result. Run them from the Command Palette, the status bar menu or the Explorer right-click menu ("Zovo Pro: ..."). Zovo Pro is USD 19 once for every Zovo extension; run "Zovo Pro: Get Zovo Pro" to pay or enter a key.

Is there a file size limit?

Files up to 2 MB format in well under 2 seconds (about 0.2 s on an Apple M-series Mac). Files over 10 MB are not formatted and a message says why (setting shellFormatter.maxFileMB). shfmt runs in a worker thread with a time limit (shellFormatter.timeoutSeconds, default 10); if the limit is hit, the file stays unchanged.

Which files does it skip?

It never touches Dockerfiles, .env files, fish or csh scripts, and a file with binary bytes (NUL), such as a self-extracting installer, is not formatted. A script with a syntax error is left unchanged, and the Problems panel shows the line and column.

Does it send anything over the network?

No. It makes no network requests and has no telemetry, and needs no account. It reads only the open script and the .editorconfig files above it.

Marketplace README snippet (copy link for VS Code Marketplace)
See full docs & install options at [vscode.zovo.one/extensions/zovo-shell-formatter/](https://vscode.zovo.one/extensions/zovo-shell-formatter/), browse all Zovo VS Code extensions at [vscode.zovo.one](https://vscode.zovo.one/), or explore [Zovo Pro](https://vscode.zovo.one/pro/).
Auto Rename Tag & Close Tag icon

Auto Rename Tag & Close Tag

zovo.zovo-auto-rename-tag

Auto rename tag and auto close tag as you type in HTML, JSX/TSX, Vue, Svelte, PHP, Blade, Twig, XML and Markdown. One undo step for both tags, never pairs <br> or TypeScript generics, highlights the matching tag. Free, no sign-in, works offline.

273 installs v0.2.17 Pro
Run C++ & C: Compile and Run icon

Run C++ & C: Compile and Run

zovo.zovo-run-cpp

Run C++ and C code with one click: compile and run the current file with gcc, g++, clang or clang++. Interactive input in the terminal, an Input panel with saved test cases and diffs, errors in Problems, Stop for endless loops, per-file flags. Free, no sign-in, works offline. Zovo Pro adds a sanitiz

166 installs v0.2.17 Pro
XSD Viewer & Schema Diagram icon

XSD Viewer & Schema Diagram

zovo.zovo-xsd-viewer

XSD viewer for VS Code: open XML Schema (.xsd) files and the schemas in .wsdl files as a tree and a diagram, with imports and includes resolved across the workspace, search and jump to line. Offline, no account.

45 installs v0.1.3 Pro