skills-for-human
home / antfu / skills@main / slidev / references / editor-monaco-write.md
Files (56)
references/
animation-click-marker.mdanimation-drawing.mdanimation-rough-marker.mdapi-slide-hooks.mdbuild-og-image.mdbuild-pdf.mdbuild-remote-assets.mdbuild-seo-meta.mdcode-groups.mdcode-import-snippet.mdcode-line-highlighting.mdcode-line-numbers.mdcode-magic-move.mdcode-max-height.mdcode-twoslash.mdcore-animations.mdcore-cli.mdcore-components.mdcore-exporting.mdcore-frontmatter.mdcore-global-context.mdcore-headmatter.mdcore-hosting.mdcore-layouts.mdcore-syntax.mddiagram-latex.mddiagram-mermaid.mddiagram-plantuml.mdeditor-monaco-run.mdeditor-monaco-write.mdeditor-monaco.mdeditor-prettier.mdeditor-side.mdeditor-vscode.mdlayout-canvas-size.mdlayout-draggable.mdlayout-global-layers.mdlayout-slots.mdlayout-transform.mdlayout-zoom.mdpresenter-notes-ruby.mdpresenter-recording.mdpresenter-remote.mdpresenter-timer.mdstyle-direction.mdstyle-icons.mdstyle-scoped.mdsyntax-block-frontmatter.mdsyntax-frontmatter-merging.mdsyntax-importing-slides.mdsyntax-mdc.mdtool-eject-theme.md
LICENSE.mdREADME.mdSKILL.mdSYNC.md

references/editor-monaco-write.md

GitHub
namemonaco-write
descriptionEdit code and save changes back to the file

Writable Monaco Editor

Edit code and save changes back to the file.

Usage

<<< ./some-file.ts {monaco-write}

Behavior

  • Links Monaco editor to actual file on filesystem
  • Changes are saved directly to the file
  • Useful for live coding demonstrations

Warning

Back up files before using - changes are saved directly.