Formatter Pro is the ultimate multi-language formatting toolkit and performance tracker for VS Code. It combines lightning-fast built-in zero-dependency formatters for Web/JSON with safe native fallbacks for compiled languages, and tops it off with specialized AI Prompt formatting engines, hardware trackers, and advanced developer network utilities!
✨ Features
Bulk Directory Formatting: Right click any folder in your Explorer and click Formatter Pro: Format Folder to beautifully format your entire codebase recursively! (Safely ignores node_modules automatically).
Compact JSON Formatting: Dedicated engine to compress deeply nested JSON objects into ultra-clean one-liners without destroying the outer array readability.
Minify JSON: Instantly compress huge JSON files into a single line.
AI Prompt Generator: Convert your code block into an optimized AI Prompt template (Raw, Escaped, or Single Line) directly to your clipboard to paste into ChatGPT/Gemini.
Native Fallbacks: Beautifully delegates C++, C#, Java, Python, Go, Rust, and PHP formatting to the official OS engines, with auto-installation prompts if you're missing them.
📊 Developer Monitors & Utilities
Execution Profiler: A high-precision performance.now() profiler tracks exactly how long every format takes and flashes ⚡ Formatted in Xms in the status bar.
Live System Monitor: A highly detailed hardware tracker in your status bar that monitors your entire OS's CPU/RAM usage, and splits out the exact VS Code Extension Host footprint when hovered!
Network Latency & Speed Test: Background HTTP ping tracking (🌐 Ping: 24ms). Click on the Ping status bar item to instantly run a 50MB On-Demand Download Speed Test that streams zero-cache data to calculate your real-time Mbps bandwidth.
File Stats & AI Cost: Real-time counter of lines and estimated LLM tokens for the active file. It can optionally calculate raw file size, estimated gzip compression size, and the USD cost to process the file using AI APIs (e.g. GPT-4o).
⌨️ Keyboard Shortcuts
Shift + Alt + F : Format Active File
Ctrl + Shift + A : Generate AI Prompt
Ctrl + M : Minify JSON (When inside a .json file)
⚙️ Configuration
Open your VS Code Settings (Ctrl + ,) and search for Formatter Pro to customize the engine perfectly. Every setting is cleanly sorted and organized:
General Formatting
Enabled Languages: Checkbox list of what languages the Bulk Formatter is allowed to touch.
Compact Json Max Length: Adjust the character cutoff for inline nested JSON blocks (default: 160).
Prettier Engine
Prettier Tab Width: Set your indentation spacing (default: 2).
Prettier Single Quote: Force 'single' vs "double" quotes (default: false).
Prettier Print Width: Adjust the max line length before wrapping (default: 120).
Status Bar Stats
Enable Status Bar: Toggle the File Stats.
Show File Size: Show raw bytes in status bar.
Show Gzip Size: Show estimated minified+gzipped payload size.
Show Token Price: Show USD cost to send file to an LLM.
AI Cost Per 1k Tokens: Configure API pricing (default: $0.005).
Performance Monitors
Enable System Monitor: Toggle the live hardware tracker (CPU/RAM).
Enable Network Monitor: Toggle the background Ping latency tracker.
Ping URL: URL endpoint to measure latency.
Monitor Refresh Rate: Polling rate in milliseconds (default: 2000ms).
Speed Test Bytes: How much dummy data to download during the click-to-run Speed Test (default: 50MB).