Format and check nginx config files in VS Code. Correct syntax colours, a formatter that never breaks a valid file, problems shown while you type, hover help for every common directive, and an overview of your servers and locations across include files. Everything runs on your computer.
Syntax colours for directives, blocks, location modifiers and regexes, variables, strings, sizes and times, and Lua blocks (content_by_lua_block) coloured as Lua
Formatter (Format Document): one statement per line, indentation from your editor settings, long log_format values keep their line breaks, at most one blank line in a row (setting). It parses its own result and changes nothing if the file would not read the same, so a valid config stays valid
Problems while you type: missing ;, unclosed or extra braces, unclosed strings, a directive in the wrong block (listen in a location, proxy_set_header inside if), duplicate root or listen, two servers with the same name on one port, ssl on
Quick fixes: add the missing ;, fix a directive name typo (proxy_set_heder -> proxy_set_header)
Directives of OpenResty/Lua, headers-more, Brotli, Passenger and other common modules are known and never marked
Hover: syntax, default value, allowed blocks and a short description for about 300 directives, with a link to the nginx documentation
Completion of the directives allowed in the current block, and of variables after $
Outline: servers with their names and ports, locations, upstreams, maps
ZOVO PRO AVAILABLEOne-time purchase · No subscription
Add Pro tools to Nginx Config Formatter & Lint
Security audit. Checks nginx configs and include files for weak TLS, missing headers, alias traversal, open proxying and exposed dotfiles.
Location tester. Tests a URL against server and location blocks across include files and shows the matching target or redirect.
Convert .htaccess to nginx. Converts Apache .htaccess rewrite, redirect, header, access and auth rules into nginx config with notes.
Yes. Nginx Config Formatter & Lint is free and MIT licensed.
How do I install Nginx Config Formatter & Lint?
Click "Install in VS Code" above, or search for zovo.zovo-nginx-config in the Extensions view.
Marketplace README snippet (copy link for VS Code Marketplace)
See full docs & install options at [vscode.zovo.one/extensions/zovo-nginx-config/](https://vscode.zovo.one/extensions/zovo-nginx-config/), browse all Zovo VS Code extensions at [vscode.zovo.one](https://vscode.zovo.one/), or explore [Zovo Pro](https://vscode.zovo.one/pro/).
PCAP viewer and PCAPNG viewer for VS Code: a packet capture analyzer with a packet list, protocol tree and linked hex pane, display filters, follow TCP stream, conversations and endpoints. Opens .pcap.gz and 1 GB captures. Pure JS, nothing to install (no Wireshark or sharkd). Free, no sign-in, works
Swagger editor and OpenAPI editor for VS Code: lint with readable rules and quick fixes, IntelliSense, $ref go to definition and rename, and a live Swagger UI preview that follows the cursor. OpenAPI 3.1, 3.0 and Swagger 2.0 in YAML or JSON, offline. Convert 2.0 to 3.0 to 3.1, bundle split specs. Al
HAR viewer and HAR file analyzer for .har files from browser DevTools: a request table with a timing waterfall, filters, headers, cookies and bodies. Copy as cURL or fetch, export filtered requests and save a redacted copy without tokens or cookies. Offline. Zovo Pro adds HAR compare, Postman collec
JSONL viewer and NDJSON viewer that opens .jsonl, .ndjson and .log files as a table, as pretty records or as a chat view for LLM datasets. Hide and resize columns. Fast on large files. Offline.
Free SARIF viewer for CodeQL, Semgrep, ESLint, Bandit, Trivy and other static analysis results. Filter by level, baseline and suppression, step through code flows, open each result at its line. No sign-in, no network, works offline.
Log viewer for large .log files: opens GB logs in seconds, colors levels, filters by level, text, regex and time, follows a growing file (tail), and shows JSON log lines as fields. Read-only, offline.