Skip to content

Commit

Permalink
feat: add format on save
Browse files Browse the repository at this point in the history
  • Loading branch information
Dsaquel committed Jan 4, 2025
1 parent 47da477 commit 1f867a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monaco/Monaco.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ onMounted(() => {
}
editorInstance.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyS, () => {
// ignore save event
editorInstance.getAction('editor.action.formatDocument')?.run()
})
watch(
Expand Down

0 comments on commit 1f867a4

Please sign in to comment.