diff --git a/src/constants/code-editor-options.ts b/src/constants/code-editor-options.ts new file mode 100644 index 0000000..0198484 --- /dev/null +++ b/src/constants/code-editor-options.ts @@ -0,0 +1,24 @@ +import * as monaco from "monaco-editor" + +export const CODE_EDITOR_OPTIONS: monaco.editor.IEditorConstructionOptions = { + autoIndent: "full", + automaticLayout: true, + contextmenu: true, + fontFamily: "Fira Code", + fontLigatures: true, + fontSize: 14, + lineHeight: 20, + hideCursorInOverviewRuler: true, + matchBrackets: "always", + minimap: { + enabled: false + }, + padding: { + top: 8 + }, + readOnly: false, + scrollbar: { + horizontalSliderSize: 4, + verticalSliderSize: 18 + } +}