DCM Calibration Data Support
ASAM DCM (.dcm) formattig and syntax highlighting
Features
- Syntax Highlighting
- Auto-Formatter
- Code Folding
Extension Settings
| Setting |
Type |
Default |
Description |
dcm.formatter.inlineSpaceCount |
integer |
1 |
Number of spaces between inline parameters |
dcm.formatter.indentStyle |
string |
"inherit" |
Block indentation behavior. Options: "spaces", or "tabs". |
dcm.formatter.indentSize |
integer |
4 |
Number of spaces per indent level when indentStyle is configured to "spaces". (Min: 1, Max: 8) |
Example Workspace Setup (.vscode/settings.json)
{
"[dcm]": {
"editor.defaultFormatter": "dcm",
"editor.formatOnSave": true
},
"dcm.formatter.indentStyle": "spaces",
"dcm.formatter.indentSize": 2,
"dcm.formatter.inlineSpaceCount": 3
}
Usage
- Command Palette: Press Ctrl + Shift + P (or Cmd + Shift + P on macOS), type "Format Document"
- Keyboard Shortcut: Press Shift + Alt + F (or Shift + Option + F on macOS).
| |