EDITOR SUPERPOWERS
IDE Intellisense, `Alt+Enter` Actions & Shortcuts
Every productivity shortcut in LILA’s CodeMirror 6 Strudel IDE: context-aware `// @` snippet Intellisense, `Alt+Enter` one-key conversions and AI upgrades, Live Templates (`Tab` stops), Mini-Notation autocomplete, and the `F1` Guide.
2. Alt+Enter Musical Intentions & Live Control Conversions
Place the cursor on any candidate constant, slider(), control directive, or pattern line and press Alt+Enter (Option+Enter on macOS) for context-aware zero-boilerplate refactors.
| Cursor Line Context | Available `Alt+Enter` Action | What It Writes / Opens |
|---|---|---|
Candidate const X = ... | Convert X to @select / @pills / @toggle / @stepper | Appends matching directive comment or opens Visual Control Builder |
Any existing control / slider() | Expose on /listen (@public) ↔ Hide (@private) | Cleanly adds or removes | private on that line’s directive |
Any slider() line | Enable Auto-Sweep LFO (sine, 4c) / Disable LFO | Toggles @lfo(...) @parked(...) modulation automatically |
| Any script | Ask LILA AI: Upgrade with Live Controls / Public Preset Switcher / Prep for /listen | Populates Gemini 4 Neon Assistant drawer with an architectural upgrade brief |
note("...") / chord("...") | Add .voicing(), Snap Notes to Scale, Rotate Steps, Mute/Solo | Instant AST musical refactoring without manual cursor juggling |
3. Live Templates (Tab Stops) & Core Keymap
Type any Live Template keyword in the editor and press Tab or Enter to stamp out pre-wired controls, preset rigs, or rhythmic templates with jumpable placeholders.
| Trigger / Shortcut | Action | Inserted Output / Behavior |
|---|---|---|
ctrl-select | Live Control Dropdown Template | const MODE = "flow"; // @select ... | label: Mode |
ctrl-pills | Segmented Pills Mode Switcher | const SECTION = "main"; // @pills ... |
ctrl-toggle | Boolean Toggle Switch Template | const LAYER_ON = true; // @toggle On, Off | label: ... |
ctrl-stepper | Numeric Stepper Template | const DENSITY = 4; // @stepper 1..16, 1 | label: ... |
ctrl-lfo | Auto-Sweep @slider LFO Template | const cutoff = slider(...); // @slider ... | @lfo(...) |
ctrl-preset-rig | Public Preset Mode + Private Rig Skeleton | Creates public MODE dropdown, private MANUAL_CONSOLE toggle, and preset() router |
Ctrl+Enter / Cmd+Enter | Evaluate / Update Live Code | Applies code live without glitching phase |
Ctrl+Space | Trigger Smart Autocomplete | Suggests Strudel methods, mini-notation, sounds, // @ directives & templates |
Cmd/Ctrl+Shift+Space | Quick Docs Popup | Pinned documentation card with /docs manual links |
F1 | IDE Guide & Keymap Modal | Searchable cheat sheet for shortcuts, syntax & rules |
Alt+7 | Structure & @scene Outline | Shows scenes, sliders, controls & layers |
1. Smart
// @& Pipe|Directive IntellisenseType
// @(or|) on any line in the Strudel editor to trigger context-aware autocomplete withTabplaceholders tailored to whatever code sits left of//.const MODE = "day"; // @,@pillsand@selectfloat to the top with matching option placeholders. Onconst ENABLED = true; // @,@toggleranks first. Onconst CUTOFF = slider(...); // @,@sliderand@labelrank first.|to autocomplete| private(hide on/listen),| public, or| label: My Control.@select,@pills,@toggle,@stepper,@slider,@label,@private,@scene, or header tag to read its syntax card and open its/docschapter.