mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 23:56:33 +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";
|
import { type editor } from "monaco-editor";
|
||||||
|
|
||||||
export const DefaultEditorOptionConfig: editor.IEditorConstructionOptions = {
|
export const DefaultEditorOptionConfig: editor.IEditorConstructionOptions = {
|
||||||
autoIndent: "full",
|
|
||||||
automaticLayout: true,
|
|
||||||
contextmenu: true,
|
|
||||||
fontFamily: "Fira Code",
|
fontFamily: "Fira Code",
|
||||||
fontLigatures: true,
|
fontLigatures: true,
|
||||||
|
lineHeight: 20,
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
|
bracketPairColorization: {
|
||||||
|
enabled: true,
|
||||||
|
},
|
||||||
|
showFoldingControls: "always",
|
||||||
guides: {
|
guides: {
|
||||||
bracketPairs: true,
|
bracketPairs: true,
|
||||||
|
bracketPairsHorizontal: "active",
|
||||||
|
highlightActiveBracketPair: true,
|
||||||
|
highlightActiveIndentation: "always",
|
||||||
indentation: true,
|
indentation: true,
|
||||||
},
|
},
|
||||||
hideCursorInOverviewRuler: true,
|
hover: {
|
||||||
lineHeight: 20,
|
above: false,
|
||||||
matchBrackets: "always",
|
|
||||||
minimap: {
|
|
||||||
enabled: false,
|
|
||||||
},
|
},
|
||||||
readOnly: false,
|
|
||||||
scrollbar: {
|
scrollbar: {
|
||||||
horizontalSliderSize: 10,
|
horizontalSliderSize: 10,
|
||||||
verticalSliderSize: 10,
|
verticalSliderSize: 10,
|
||||||
},
|
},
|
||||||
showFoldingControls: "always",
|
|
||||||
wordWrap: "on",
|
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