diff --git a/frontend/src/lib/components/Editor.svelte b/frontend/src/lib/components/Editor.svelte index 226f4509a1..a4e255c609 100644 --- a/frontend/src/lib/components/Editor.svelte +++ b/frontend/src/lib/components/Editor.svelte @@ -411,7 +411,8 @@ model.updateOptions(updateOptions) editor = meditor.create(divEl as HTMLDivElement, { - ...editorConfig(model, code, lang, automaticLayout, fixedOverflowWidgets) + ...editorConfig(model, code, lang, automaticLayout, fixedOverflowWidgets), + tabSize: lang == 'python' ? 4 : 2 }) let timeoutModel: NodeJS.Timeout | undefined = undefined