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.