You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use `disableInitialFocus` to prevent VS Code from stealing keyboard focus when you navigate to a slide — arrow keys keep working for Slidev navigation:
106
106
107
-
```vue
107
+
```js
108
108
<Editor session="demo" disableInitialFocus />
109
109
```
110
110
@@ -114,7 +114,7 @@ Focus is held on the slide, after an interaction, the user can interact with VS
114
114
115
115
Use `preload` to warm up the VS Code session before the user reaches the slide. Slidev mounts adjacent slides in the background, so the session can start while the user is still on the previous slide:
116
116
117
-
```vue
117
+
```js
118
118
<Editor session="demo" preload />
119
119
```
120
120
@@ -124,7 +124,7 @@ Combine with `disableInitialFocus` for a seamless experience — the IDE is read
124
124
125
125
By default, navigating away from a slide stops the session. Use `persist` to keep it running:
126
126
127
-
```vue
127
+
```js
128
128
<Editor session="demo" persist />
129
129
```
130
130
@@ -189,7 +189,7 @@ Pair `<Editor />` with other addons for a fully self-contained demo environment
189
189
- **[slidev-addon-liveshell](https://npmx.dev/package/slidev-addon-liveshell)** — embed a live terminal directly in your slide alongside the editor.
190
190
- **An `<iframe>` pointing to your dev server** — embed your running app next to the editor. Edit code in VS Code, and the hot reload updates the iframe in real time, all without leaving the presentation.
0 commit comments