Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>vscode-cue-fmtNew to Visual Studio Code? Get it now.
vscode-cue-fmt

vscode-cue-fmt

John Allen

|
5,373 installs
| (1) | Free
Add auto-formatting for CUE Lang files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-cue-fmt

Format CUE files using cue fmt.

Setup

CUE must be installed and cue must be on the users $PATH.

# MacOS
brew install cue-lang/tap/cue
# more info: https://cuelang.org/docs/install/

Enable "format on save" VS Code setting.

// settings.json
"editor.formatOnSave": true

Why?

I've grown accustomed to the format on save feature that's enabled by default with the NeoVim CUE plugin that I use and was dissapointed to find that the existing CUE extension for VS Code did not support this feature. Eventually that extension will support formatting via LSP but there is no telling when CUE LSP will be available. In the meantime this should do the trick.

Status

Alpha -- I've never written TypeScript let alone a VS Code extension. The code in this extension is extremely niave and has little to no error handling. Use at your own risk.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft