judge4c/src/config/editor.ts
cfngc4594 2e74ffbac3 refactor(config): migrate editor options to standalone editor config
- Rename `editor-language.ts` to `editor.ts`
- Update interface from `IEditorConstructionOptions` to `IStandaloneEditorConstructionOptions`
- Keep all existing editor options unchanged
2025-05-13 16:57:35 +08:00

47 lines
1.0 KiB
TypeScript

import type { editor } from "monaco-editor";
export const DEFAULT_EDITOR_OPTIONS: editor.IStandaloneEditorConstructionOptions =
{
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,
},
hover: {
above: false,
},
padding: {
top: 8,
},
scrollbar: {
horizontalSliderSize: 10,
verticalSliderSize: 10,
},
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",
};