SaC formatting is client-side and works without a language server.
Formatter settings come from two places:
- VS Code settings under
sac.format.* - Workspace-local
.sac-formatfiles
Precedence is:
- VS Code settings win over
.sac-format .sac-formatwins over built-in defaults
That lets a workspace ship shared formatting defaults while each user keeps personal overrides.
Use the command "SaC: Generate Default .sac-format File" to scaffold a .sac-format in your workspace root.
VS Code provides syntax highlighting and hover tooltips for .sac-format keys, making configuration easy.
sac.format.enablesac.format.onSavesac.format.indentSizesac.format.normalizeGuardssac.format.expandInlineWithLoopssac.format.expandInlineComprehensionssac.format.splitInlineGuardssac.format.assertions(deprecated alias)
Keys are case-insensitive.
IndentSizeTabWidthNormalizeGuardsExpandInlineWithLoopsExpandInlineComprehensionsSplitInlineGuards
IndentSize: 4
NormalizeGuards: true
ExpandInlineWithLoops: true
ExpandInlineComprehensions: true
SplitInlineGuards: true
.sac-formatis read from nearest file in current workspace tree.- Format-on-save uses same resolved config as manual formatting.
SplitInlineGuards: falsekeeps inline function guards inline instead of splitting them into multiline form.