From cd0d142e7fc72790dfa22b46c7ee804ed39d3d74 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 22 Jul 2022 15:55:09 +0800 Subject: [PATCH] refactor(gui-v2): monaco editor setup --- packages/nc-gui-v2/components/monaco/Editor.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/components/monaco/Editor.vue b/packages/nc-gui-v2/components/monaco/Editor.vue index 739429905b..06e94d51a0 100644 --- a/packages/nc-gui-v2/components/monaco/Editor.vue +++ b/packages/nc-gui-v2/components/monaco/Editor.vue @@ -28,7 +28,15 @@ onMounted(() => { editor = monaco.editor.create(root.value, { model, - theme: 'dark', + theme: 'vs', + foldingStrategy: 'indentation', + selectOnLineNumbers: true, + scrollbar: { + verticalScrollbarSize: 8, + horizontalScrollbarSize: 8, + }, + tabSize: 2, + automaticLayout: true, }) editor.onDidChangeModelContent(async (e) => {