MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / runFormatDocumentAction

Method runFormatDocumentAction

static/panes/editor.ts:1086–1088  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1084 }
1085
1086 runFormatDocumentAction(): void {
1087 unwrap(this.editor.getAction('editor.action.formatDocument')).run();
1088 }
1089
1090 searchOnCppreference(ed: monaco.editor.ICodeEditor): void {
1091 const pos = ed.getPosition();

Callers 3

maybeEmitChangeMethod · 0.95
handleCtrlSMethod · 0.95
registerEditorActionsMethod · 0.95

Calls 2

unwrapFunction · 0.50
runMethod · 0.45

Tested by

no test coverage detected