Format a file or selection using the language server's formatter. Use before committing to apply consistent style, or after generating code to clean up indentation and spacing. Supports full-file and range-based formatting.
安装
npx skills add blackwell-systems/agent-lsp --skill lsp-format-codenpx skills add blackwell-systems/agent-lsp --skill lsp-format-code -a claude-code -gnpx skills add blackwell-systems/agent-lsp --skill lsp-format-code -a codex -ggemini skills install https://github.com/blackwell-systems/agent-lsp.git --path skills/lsp-format-codegh skill install blackwell-systems/agent-lsp lsp-format-codegit clone --depth 1 https://github.com/blackwell-systems/agent-lsp /tmp/blackwell-systems__agent-lsp
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/blackwell-systems__agent-lsp/skills/lsp-format-code ~/.claude/skills/lsp-format-code # Claude Code
cp -R /tmp/blackwell-systems__agent-lsp/skills/lsp-format-code ~/.agents/skills/lsp-format-code # Codex, Cursor, Gemini CLI, Copilot, OpenCode