Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>SelerianScriptNew to Visual Studio Code? Get it now.
SelerianScript

SelerianScript

Satya

|
1 install
| (1) | Free
Language support for SelerianScript - A hybrid language with Python and C++ interop
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SelerianScript VSCode Extension

Language support for SelerianScript - A hybrid programming language with Python and C++ interoperability.

Features

  • Syntax Highlighting: Full syntax highlighting for .sel files
  • Code Execution: Run SelerianScript files directly from VSCode
  • Native Compilation: Compile to optimized native executables
  • IntelliSense: Basic code completion and suggestions
  • Keyboard Shortcuts:
    • Ctrl+Shift+R (Mac: Cmd+Shift+R) - Run current file
    • Ctrl+Shift+B (Mac: Cmd+Shift+B) - Compile to native executable

Installation

Method 1: Install from VSIX (Recommended)

  1. Open VSCode
  2. Go to Extensions (Ctrl+Shift+X)
  3. Click the "..." menu at the top
  4. Select "Install from VSIX..."
  5. Choose the selerianscript-1.0.0.vsix file

Method 2: Manual Installation

  1. Copy the vscode-extension folder to:
    • Windows: %USERPROFILE%\.vscode\extensions\selerianscript-1.0.0
    • Mac/Linux: ~/.vscode/extensions/selerianscript-1.0.0
  2. Restart VSCode

Method 3: Development Mode

  1. Open the vscode-extension folder in VSCode
  2. Press F5 to launch Extension Development Host
  3. Open a .sel file to test

Usage

Running SelerianScript Files

  1. Open a .sel file
  2. Press Ctrl+Shift+R or use Command Palette: "Run SelerianScript File"
  3. Output appears in the "SelerianScript" output channel

Compiling to Native Executable

  1. Open a .sel file
  2. Press Ctrl+Shift+B or use Command Palette: "Compile SelerianScript to Native"
  3. Optimized executable is created in the same directory
  4. Compilation uses: -O3 -march=native -flto -ffast-math for maximum performance

Requirements

  • Python 3.7+
  • GCC compiler (for native compilation)
  • SelerianScript interpreter and compiler in workspace root

Language Features

  • Python and C++ syntax compatibility
  • out, print, and cout all work for output
  • Native Python/C++ code blocks with py { } and cpp { }
  • Classes, functions, loops, conditionals
  • Type inference with optional typing

Example

out "Hello from SelerianScript!"

let x = 42
print(x)  // Python-style also works

func add(a, b) {
    return a + b
}

out add(10, 20)

py {
    import numpy as np
    data = np.array([1, 2, 3])
}

Known Issues

  • C++ compilation requires GCC to be in PATH
  • LLVM compilation is optional but recommended for best performance

Release Notes

1.0.0

  • Initial release
  • Syntax highlighting
  • Run and compile commands
  • Keyboard shortcuts

Contributing

Visit the SelerianScript repository to contribute!

License

MIT License

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