Skip to content

Commit e0ed59c

Browse files
author
Dsaquel
committed
feat: add format on save
1 parent d484513 commit e0ed59c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/monaco/Monaco.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ onMounted(() => {
143143
}
144144
145145
editorInstance.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyS, () => {
146-
// ignore save event
146+
editorInstance.getAction('editor.action.formatDocument')?.run()
147147
})
148148
149149
watch(

0 commit comments

Comments
 (0)