Grenton and VS Code: an editor on the same engine
OMP Studio is not a VS Code extension, but it runs on Monaco, the same editor engine as VS Code, and you use it in your browser. On top of syntax highlighting, it knows your Grenton project.
VS Code or Visual Studio?
These are two different Microsoft programs that searches often mix up. Visual Studio Code (VS Code) is a lightweight code editor, and Visual Studio is a full development environment. For Grenton Lua scripts the comparison is with VS Code, because that is where the Monaco engine comes from. OMP Studio integrates with neither program.
What will feel familiar
- The Monaco editor with tabs and dark and light themes.
- Quick open with Cmd/Ctrl+P.
- Go to a script's definition from a
->chain with Cmd-click. - Search across all project scripts, and a Problems panel.
- Open tabs and unsaved edits that survive a page reload.
What a general Lua editor doesn't know about Grenton
CLU->Object->Feature is not standard Lua, so general Lua tools treat it as an error or don't understand it. OMP Studio builds an index from your project and from Object Manager's device catalog, so it suggests the objects, features, methods and enum values that match your CLUs' firmware.
| Capability | General editor with Lua | OMP Studio |
|---|---|---|
-> chains | Not standard Lua | Highlighting, autocomplete and checks |
| Object and feature names | Doesn't know your project | From the project index |
| Cross-CLU calls | Doesn't know the semantics | Flags local variables that won't reach the target |
The .omp file | An archive you handle yourself | Unpacking, sync and a guarded save |
The Grenton Lua guide describes the rules.
How to try it
- Open the demo: it runs in the browser on a sample project, with no installation.
- Try Cmd/Ctrl+P and go to definition, then type a typo in a
->chain to see the checks. - To work on your own project, run
npx @omp-studio/omps MyProject.ompnext to the.ompfile.
Changes from outside the editor
A file change made in the local working copy outside the browser isn't lost: the omps session commits it to the history, refreshes the project index and schedules a save to the .omp. Local AI agents rely on this mechanism. The working copy is the program's internal folder, though, so we don't recommend editing it in VS Code.
Common questions
Is there an OMP Studio extension for VS Code?
There is no such product to install. OMP Studio runs in the browser.
Do I have to install VS Code?
No. The editor opens in your browser. You need the local omps program and Object Manager.
Are the keyboard shortcuts the same as in VS Code?
The engine is the same, but this isn't full VS Code. VS Code extensions and settings don't apply here. The demo is the quickest way to try the editor.