VS Code & Editor Extension
import { Tabs, TabItem } from ‘@astrojs/starlight/components’;
The Agent-MD Formatter extension brings the speed and token-efficiency of the agent-md CLI directly into your code editor.
Supported editors include VS Code, Cursor, Devin, Windsurf, and Antigravity.
Installation
Section titled “Installation”From the Extension Marketplace
Section titled “From the Extension Marketplace”Search for Agent-MD Formatter in your editor’s Extensions view, or install directly from the VS Code Marketplace.
Or install via terminal:
# Standard VS Codecode --install-extension loclv.agent-md-formatter
# Cursorcursor --install-extension loclv.agent-md-formatterFrom VSIX Package
Section titled “From VSIX Package”If building the extension from source:
cd vscode-extensionbun installbun compilecode --install-extension agent-md-formatter-0.1.0.vsixConfiguration
Section titled “Configuration”All extension settings can be added to your User or Workspace settings.json.
Enable Format on Save
Section titled “Enable Format on Save”To automatically format Markdown documents whenever you save:
{ "[markdown]": { "editor.defaultFormatter": "loclv.agent-md-formatter", "editor.formatOnSave": true }}Settings Reference
Section titled “Settings Reference”| Setting | Type | Default | Description |
|---|---|---|---|
agentMd.path |
string | "agent-md" |
Custom path to the agent-md binary. Automatically checks project target/release, ~/.cargo/bin, and system PATH |
agentMd.format.removeBold |
boolean | true |
Strip **bold** and __bold__ markers |
agentMd.format.compactBlankLines |
boolean | true |
Collapse consecutive blank lines |
agentMd.format.collapseSpaces |
boolean | true |
Collapse redundant whitespace between words |
agentMd.format.removeHorizontalRules |
boolean | true |
Remove horizontal divider lines (---) |
agentMd.format.removeEmphasis |
boolean | true |
Strip italic markers |
Keybindings & Manual Formatting
Section titled “Keybindings & Manual Formatting”Format the active Markdown document at any time:
| Action | macOS | Windows / Linux |
|---|---|---|
| Format Document | Shift + Option + F |
Shift + Alt + F |
| Command Palette | Cmd + Shift + P -> “Format Document” |
Ctrl + Shift + P -> “Format Document” |