monaco-editor-lsp-next/src/constants/option.ts

31 lines
611 B
TypeScript
Raw Normal View History

import { type editor } from "monaco-editor";
export const CODE_EDITOR_OPTIONS: editor.IEditorConstructionOptions = {
autoIndent: "full",
automaticLayout: true,
contextmenu: true,
fontFamily: "Fira Code",
fontLigatures: true,
fontSize: 14,
guides: {
bracketPairs: true,
indentation: true,
},
hideCursorInOverviewRuler: true,
lineHeight: 20,
matchBrackets: "always",
minimap: {
enabled: false
},
padding: {
top: 8
},
readOnly: false,
scrollbar: {
horizontalSliderSize: 10,
verticalSliderSize: 10
},
showFoldingControls: "always",
wordWrap: "on",
}