Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>vscode-cuelangNew to Visual Studio Code? Get it now.
vscode-cuelang

vscode-cuelang

brody715

|
4,280 installs
| (0) | Free
Language support for Cue
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-cuelang README

Language Support for CUE

Features

  • Syntax Highlighting
  • Formatting (based on cue fmt)
  • Naive Lint (based on cue vet)
  • Evaluation Preview (based on cue eval)

Prerequisite

  • Install CUE SDK, see https://cuelang.org/docs/install/

Usage

To use VSCode command quickly, press cmd + shift + p to open Command Palette. Search the command name and then press enter.

Format

Same as other formatters, for instance, use VSCode command Format Document.

Lint

Use command Cue: Lint Current File to lint.

Or configure {"cue.lintOnSave": "file"} to lint automatically when file saved (default on).

Evaluation Preview

same as cue eval -e xxx

Use command Cue: Evaluate .... It will open an preview panel to show the evaluation result.

You can input expressions, or select different output types that CUE supported.

Configuration

{
  "cue.lintOnSave": "file", // or "off"
  "cue.lintFlags": [], // e.g. ["-c"]
  "cue.moduleRoot": "${workspaceFolder}" // used to resolve modules
}

Dev

See DEV.md

Credits

Project LICENSE
shikijs/shiki MIT
golang/vscode-go MIT
cue-lang/cue Apache-2.0
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft