Formatting
Core
- Document formatting (
textDocument/formatting) - Range formatting (
textDocument/rangeFormatting) - Respect
.clang-formatstyle files - Include sorting
- Combined include sort + reformat in single pass
Style Resolution
- Auto-detect style from
.clang-format— clang-format searches parent directories from the source file up to the filesystem root - Fallback to LLVM default style when no
.clang-formatis found in any parent directory
On-type and Save Hooks
- On-type formatting (
textDocument/onTypeFormatting) - Format-on-save integration
Project-wide Format
Beyond the LSP textDocument/formatting request (which formats a single open file), clice provides project-wide formatting via CLI.
- CLI
clice formatfor batch formatting - Parallel formatting across project files
- Incremental format (only modified files since last run)
- Dry-run / diff mode (show what would change)
Changelog
| Date | Change | PR |
|---|---|---|
| — | Document formatting, range formatting, include sorting | — |