https://github.com/asdine/vscode-cue
Cue for Visual Studio Code
https://github.com/asdine/vscode-cue
Last synced: about 2 months ago
JSON representation
Cue for Visual Studio Code
- Host: GitHub
- URL: https://github.com/asdine/vscode-cue
- Owner: asdine
- License: mit
- Created: 2022-09-12T05:41:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-18T06:42:28.000Z (over 2 years ago)
- Last Synced: 2025-02-25T19:07:21.607Z (about 2 months ago)
- Language: TypeScript
- Homepage:
- Size: 180 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cue - vscode-cue - CUE for Visual Studio Code. (Projects)
README
# Cue for Visual Studio Code
The VS Code Cue extension provides language support for the [CUE](https://github.com/cue-lang/cue) data validation language.

## Features
- Code formatting
- Automatic imports management using [cueimports](https://github.com/asdine/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
- [Shiki](https://github.com/shikijs/shiki)