Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/sxzz/typescript-go-playground. TypeScript Go Playground tsgo.sxzz.dev
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930import { dark } from './dark'import { THEME_DARK, THEME_LIGHT } from './theme'import type * as monaco from 'monaco-editor'
export function getSharedMonacoOptions(): monaco.editor.IStandaloneEditorConstructionOptions { return { automaticLayout: true, theme: dark.value ? THEME_DARK : THEME_LIGHT, fontFamily: '"Cascadia Code", "Jetbrains Mono", "Fira Code", "IBM Plex Mono", "Menlo", "Consolas", monospace', tabSize: 2, padding: { top: 12, bottom: 12 }, scrollBeyondLastLine: false, smoothScrolling: true, renderLineHighlight: 'line', overviewRulerBorder: false, overviewRulerLanes: 0, hideCursorInOverviewRuler: true, guides: { indentation: true }, scrollbar: { verticalScrollbarSize: 8, horizontalScrollbarSize: 8, useShadows: false, }, minimap: { enabled: false, }, }}