The VS Code CUE extension provides rich language support for the CUE language.
CUE makes it easy to validate data, write schemas, and ensure configurations align with policies.
CUE works with a wide range of tools and formats that you're already using such as Go, JSON, YAML, OpenAPI, and JSON Schema.
For more information and documentation, including tutorials and guides, see cuelang.org.
Visual Studio Code is an awesome, extensible, multi-platform editor and IDE. Its ecosystem has a massive number of plugins for different languages, and this one implements syntax highlighting (and potentially more functionality in the future) for the CUE language.
Whether you are new or experienced CUE user, we hope this extension fits your needs and enhances your configuration, data and policy experience.
-
Install CUE v0.11.0 or newer if you haven't already.
-
Install the [VS Code CUE extension].
-
Open any CUE file file to automatically activate the extension. The CUE status bar appears in the bottom right corner of the window and displays your CUE version. The ⚡ sign next to the CUE version indicates the language server is running, and you are ready to go.
-
Use the Command Palette,
Shift+Command+P
(Mac) /Ctrl+Shift+P
(Windows/Linux), to run CUE-specific commands. They are all prefixed withCUE:
.
This project was started by betawaffle who graciously permitted that it be moved to a more general home in the cue-sh (which is part of the CUE Project), before then being migrated to the cue-lang organisation which more clearly identifies it as part of the CUE Project along with the main CUE repository.
See Contributing.