marimo icon indicating copy to clipboard operation
marimo copied to clipboard

Allow configuring editor tab size

Open JaninaWibker opened this issue 7 months ago • 3 comments

Description

I'd like if I could configure the tab size/width being used by the code editor to something other than 4.

I found the relevant code https://github.com/marimo-team/marimo/blob/main/frontend/src/core/codemirror/cm.ts#L200 which sets this to 4 by default using indentUnit.of(" ")

Suggested solution

Either a setting in the UI or maybe a way of inferring the tab size from the formatter config would be greatly appreciated

Thanks!

Alternative

No response

Additional context

No response

JaninaWibker avatar Apr 09 '25 13:04 JaninaWibker

+1 for this, requires synchronise of ruff default?

ndc33 avatar Apr 09 '25 20:04 ndc33

+1 for this. this is so basic...

xiaotian avatar Nov 02 '25 17:11 xiaotian

+1

marpore avatar Nov 14 '25 09:11 marpore