mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-17 23:12:23 +00:00
- Rename `editor-language.ts` to `editor.ts` - Update interface from `IEditorConstructionOptions` to `IStandaloneEditorConstructionOptions` - Keep all existing editor options unchanged
47 lines
1.0 KiB
TypeScript
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",
|
|
};
|