chore(editor): update Monaco Editor configuration for improved UX

This commit is contained in:
cfngc4594 2025-03-28 15:45:15 +08:00
parent d859796755
commit 452174a946

View File

@ -1,27 +1,42 @@
import { type editor } from "monaco-editor";
export const DefaultEditorOptionConfig: editor.IEditorConstructionOptions = {
autoIndent: "full",
automaticLayout: true,
contextmenu: true,
fontFamily: "Fira Code",
fontLigatures: true,
lineHeight: 20,
fontSize: 14,
bracketPairColorization: {
enabled: true,
},
showFoldingControls: "always",
guides: {
bracketPairs: true,
bracketPairsHorizontal: "active",
highlightActiveBracketPair: true,
highlightActiveIndentation: "always",
indentation: true,
},
hideCursorInOverviewRuler: true,
lineHeight: 20,
matchBrackets: "always",
minimap: {
enabled: false,
hover: {
above: false,
},
readOnly: false,
scrollbar: {
horizontalSliderSize: 10,
verticalSliderSize: 10,
},
showFoldingControls: "always",
wordWrap: "on",
minimap: {
enabled: false,
},
smoothScrolling: true,
stickyScroll: {
enabled: true,
maxLineCount: 5,
},
cursorBlinking: "smooth",
cursorSmoothCaretAnimation: "on",
suggestSelection: "recentlyUsed",
autoIndent: "full",
automaticLayout: true,
contextmenu: true,
matchBrackets: "always",
};