Skip to content

Commit 9051211

Browse files
add: formatCode cmd back in codemirror 6 (#2063)
This PR restores the formatCode keyboard command (Ctrl-Alt-F) that was lost during the migration to CodeMirror 6.
1 parent 4035fe6 commit 9051211

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/lib/keyBindings.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,14 @@ const APP_BINDING_CONFIG = [
509509
readOnly: true,
510510
editorOnly: true,
511511
},
512+
{
513+
name: "formatCode",
514+
description: "Format Code",
515+
key: "Ctrl-Alt-F",
516+
readOnly: false,
517+
editorOnly: true,
518+
action: "format",
519+
},
512520
];
513521

514522
const APP_KEY_BINDINGS = buildAppBindings(APP_BINDING_CONFIG);

0 commit comments

Comments
 (0)