judge4c/src/config/editor.ts

47 lines
1.0 KiB
TypeScript
Raw Normal View History

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",
};