Iron Eagle Slice Studio
Official-style VS Code support for the Slice programming language created by
Karen Gevorgyan and developed under the Iron Eagle name.
Features
- Syntax highlighting for Slice and embedded
python() { ... } blocks.
- Live syntax diagnostics without executing the program.
- Run the current file with F6.
- Check the current file with Ctrl+F6 (
Cmd+F6 on macOS).
- Open the persistent Slice REPL with Shift+F6.
- Explorer symbols for classes, functions and variables.
- Hover documentation for important language modules.
- Snippets for functions, classes, loops, errors, backend routes, outgoing HTTP,
SQLite, files, rendering, Python interop and GUI applications.
- A bundled Slice 1.2 runtime; a separate interpreter path remains configurable.
Quick start
- Install the
.vsix through Extensions: Install from VSIX....
- Open or create a file ending in
.slice.
- Enter
backend-app, fn, class, python, or another snippet prefix.
- Press F6 to run.
fn hello(name) {
return "Hello, " + name
}
println(hello("Slice"))
Trusted Python interop
var values = [1, 2, 3]
python() {
total = sum(values)
}
println(total)
Python blocks execute real local Python code. The extension intentionally does
not support untrusted workspaces. Review downloaded .slice programs before
running them.
Interpreter configuration
By default the extension runs the Slice runtime packaged inside the extension.
Set slice.interpreterPath to use another main.py, and slice.pythonPath to
select its Python executable.
Other settings control live validation, debounce delay, saving before run and
terminal clearing. Search for Slice in VS Code Settings.
Commands
| Command |
Shortcut |
Purpose |
Slice: Run Current File |
F6 |
Save and execute the current .slice file |
Slice: Check Current File |
Ctrl/Cmd+F6 |
Parse without execution |
Slice: Open REPL |
Shift+F6 |
Open a persistent Slice terminal session |
Requirements
- VS Code 1.85 or newer.
- Python 3.10 or newer available as
python3 (macOS/Linux) or python (Windows),
unless configured differently.
- NumPy is optional and only required by Slice programs that use accelerated
numpy arrays.
Author
Karen Gevorgyan — Iron Eagle Company.
License
MIT