mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
feat(editor): add default configuration for Monaco code editor
This commit is contained in:
parent
9057c5971e
commit
01f188ac56
24
src/constants/code-editor-options.ts
Normal file
24
src/constants/code-editor-options.ts
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
import * as monaco from "monaco-editor"
|
||||||
|
|
||||||
|
export const CODE_EDITOR_OPTIONS: monaco.editor.IEditorConstructionOptions = {
|
||||||
|
autoIndent: "full",
|
||||||
|
automaticLayout: true,
|
||||||
|
contextmenu: true,
|
||||||
|
fontFamily: "Fira Code",
|
||||||
|
fontLigatures: true,
|
||||||
|
fontSize: 14,
|
||||||
|
lineHeight: 20,
|
||||||
|
hideCursorInOverviewRuler: true,
|
||||||
|
matchBrackets: "always",
|
||||||
|
minimap: {
|
||||||
|
enabled: false
|
||||||
|
},
|
||||||
|
padding: {
|
||||||
|
top: 8
|
||||||
|
},
|
||||||
|
readOnly: false,
|
||||||
|
scrollbar: {
|
||||||
|
horizontalSliderSize: 4,
|
||||||
|
verticalSliderSize: 18
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user