返回 slidev
editor-monaco-write.md
根目录 / skills / slidev / references / editor-monaco-write.md
1 ---
2 name: monaco-write
3 description: Edit code and save changes back to the file
4 ---
5
6 # Writable Monaco Editor
7
8 Edit code and save changes back to the file.
9
10 ## Usage
11
12 ```md
13 <<< ./some-file.ts {monaco-write}
14 ```
15
16 ## Behavior
17
18 - Links Monaco editor to actual file on filesystem
19 - Changes are saved directly to the file
20 - Useful for live coding demonstrations
21
22 ## Warning
23
24 Back up files before using - changes are saved directly.
25
25 lines MARKDOWN