Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1017 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 1017 Bytes

Cue for Visual Studio Code

The VS Code Cue extension provides language support for the CUE data validation language.

Cue extension overview

Features

  • Code formatting
  • Automatic imports management using cueimports
  • Syntax highlightimg
  • Package linting

Requirements

This extension requires the cue binary.

Extension Settings

This extension contributes the following settings:

  • cue.formatTool: Tool to use for formatting code. Either cueimports or cue fmt
  • cue.lintOnSave: Lints code on file save using cue vet. Either package or none.
  • cue.lintFlags: Flags to pass to cue 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.

Credits