# 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.

Write live controls and complex Strudel patterns at the speed of thought using JetBrains-inspired intentions, smart `// @` comment completions, and 1-click Gemini 4 Neon upgrades.

## 1. Smart `// @` & Pipe `|` Directive Intellisense

Type `// @` (or `| `) on any line in the Strudel editor to trigger context-aware autocomplete with `Tab` placeholders tailored to whatever code sits left of `//`.

- **Smart Context Boosting**: On `const MODE = "day"; // @`, `@pills` and `@select` float to the top with matching option placeholders. On `const ENABLED = true; // @`, `@toggle` ranks first. On `const CUTOFF = slider(...); // @`, `@slider` and `@label` rank first.
- **Pipe Modifiers**: Inside an existing directive comment, type `| ` to autocomplete `| private` (hide on `/listen`), `| public`, or `| label: My Control`.
- **Live Hover & Quick Docs (`Cmd/Ctrl+Shift+Space`)**: Hover or press Quick Docs over any `@select`, `@pills`, `@toggle`, `@stepper`, `@slider`, `@label`, `@private`, `@scene`, or header tag to read its syntax card and open its `/docs` chapter.

## 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 |
