The VS Code Cue extension provides language support for the CUE data validation language.
- Code formatting
- Automatic imports management using cueimports
- Syntax highlightimg
- Package linting
This extension requires the cue
binary.
This extension contributes the following settings:
cue.formatTool
: Tool to use for formatting code. Eithercueimports
orcue fmt
cue.lintOnSave
: Lints code on file save usingcue vet
. Eitherpackage
ornone
.cue.lintFlags
: Flags to pass tocue vet
(e.g. ["-c"])cue.toolsPath
: Path to the directory containing the tools installed by the extension (e.g. cueimports, etc...). If not set, the extension will use the $HOME/.bin directory. This directory must be in your PATH.