Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Minecraft Script Language SupportNew to Visual Studio Code? Get it now.
Minecraft Script Language Support

Minecraft Script Language Support

SpyC0der77

|
2 installs
| (0) | Free
Syntax highlighting and command() linting for Minecraft Script .mcs files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Minecraft Script Language Support

Language support for Minecraft Script .mcs files in VS Code.

Features

  • Syntax highlighting for MCS keywords, selectors, resource locations, built-in helpers, text components, and command() strings
  • Hover help for keywords, built-in functions, text component methods, and target selectors (@a, @s, …)
  • Command linting and completion inside literal command("...") and command('...') calls via Spyglass
  • Version picker for command validation across supported Minecraft releases

Commands

Command Description
Minecraft Script: Select Command Lint Version Choose the Minecraft version Spyglass uses for command validation
Minecraft Script: Show Output Open the Minecraft Script output channel (useful if linting fails on first run)

Settings

Setting Default Description
mcsHighlighter.minecraftVersion 1.21.2 Minecraft version used when linting literal command() strings

The first lint run downloads Minecraft command data from the network. Dynamic commands such as command(myVar) are skipped because their final text is not known in the editor.

Spyglass

This extension uses Spyglass only for Minecraft command linting inside literal command() strings. It does not register .mcs files as .mcfunction, and it does not enable Spyglass diagnostics across the whole MCS document.

Spyglass is MIT licensed: SpyglassMC/Spyglass.

Development

To work on the extension locally:

  1. Open the highlighter/ folder in VS Code.
  2. Run bun install.
  3. Run bun run build (or press F5 to build and launch an Extension Development Host).
  4. Open a .mcs file in the Extension Development Host.

To package a .vsix without publishing:

bun run package

See contributors.md for the full Marketplace publishing flow.

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