Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Magnificent LanguageNew to Visual Studio Code? Get it now.
Magnificent Language

Magnificent Language

magnificent-language

|
1 install
| (0) | Free
VS Code support for Magnificent Language (MGL): syntax highlighting, snippets, file associations, and CLI commands.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Version VS Code File Type Commands

Magnificent Language for VS Code

This extension adds first-party editor support for Magnificent Language (.mgl) files.

Extension icon asset: mgl-extension-icon.png

Features

  • .mgl file association
  • Syntax highlighting for keywords, declarations, comments, strings, numbers, and calls
  • Snippets for common language constructs
  • Bracket, quote, and comment configuration
  • Command Palette actions:
    • MGL: Run Current File
    • MGL: Open REPL
    • MGL: Initialize Project
    • MGL: Insert Main Template
    • MGL: Insert Import Statement

Commands

The extension uses the existing MGL CLI.

When you run it inside this repository, it automatically falls back to the local bin/mgl runner. If you want to override that, set a custom CLI path:

  • mgl run <file>
  • mgl repl

Set the CLI path in VS Code settings if needed:

{
  "magnificentLanguage.cliPath": "mgl"
}

Local Development

If you open the repository root in VS Code:

  1. Press F5.
  2. Choose Run MGL VS Code Extension.
  3. A new Extension Development Host window will open with the repo workspace.

If you open only mgl-extension in VS Code:

  1. Press F5.
  2. Choose Run MGL Extension.

Then open any .mgl file in the development host and run MGL: Run Current File from the Command Palette.

Included Snippets

  • func
  • class
  • method
  • if
  • ife
  • elif
  • loop
  • loops
  • import
  • array
  • print
  • main
  • module

Packaging

This subproject is ready for packaging with vsce.

Package it with:

cd mgl-extension
npx @vscode/vsce package

For full release steps, see the GitHub release guide.

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