diff --git a/src/monaco/Monaco.vue b/src/monaco/Monaco.vue index e67fbfb3..14e36c48 100644 --- a/src/monaco/Monaco.vue +++ b/src/monaco/Monaco.vue @@ -143,7 +143,7 @@ onMounted(() => { } editorInstance.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyS, () => { - // ignore save event + editorInstance.getAction('editor.action.formatDocument')?.run() }) watch(