mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-17 23:12:23 +00:00
chore(editor): update Monaco Editor configuration for improved UX
This commit is contained in:
parent
d859796755
commit
452174a946
@ -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",
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user