MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / defaultEditorOptions

Function defaultEditorOptions

frontend/app/view/codeeditor/codeeditor.tsx:11–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9import React, { useMemo, useRef } from "react";
10
11function defaultEditorOptions(): MonacoTypes.editor.IEditorOptions {
12 const opts: MonacoTypes.editor.IEditorOptions = {
13 scrollBeyondLastLine: false,
14 fontSize: 12,
15 fontFamily: "Hack",
16 smoothScrolling: true,
17 scrollbar: {
18 useShadows: false,
19 verticalScrollbarSize: 5,
20 horizontalScrollbarSize: 5,
21 },
22 minimap: {
23 enabled: true,
24 },
25 stickyScroll: {
26 enabled: false,
27 },
28 };
29 return opts;
30}
31
32interface CodeEditorProps {
33 blockId: string;

Callers 1

CodeEditorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected