Any way to disable auto-indentation in Cursor?

The auto-indentation in Cursor does not seem to work very well. It keeps indenting in all the wrong places and messing up my code formatting.

I was wondering if there is a way to completely disable auto-indentation? I’d rather handle it manually than deal with these issues.

Any help would be appreciated!

3 Likes

I would also very much appreciate disabling the auto-indentation, I’m referring to when the autocomplete suggestion is purely indentations, no code. Also I experience most pain when I’m indenting my comment blocks.

Indentation is on tab, also cursor suggestion is also on tab, so often I’m very confused on what am I doing when I press tab, am I doing my own indentation? am I accepting cursor’s suggestion?

Also I think the indentation diff UI is naturally confusing. It’s not as easy to read as code diffs.

2 Likes

This is my experience also – unwanted indentation changes are currently the most painful aspect of Cursor usage. For example in Python, try placing a try ... except statement around some lines. The inner lines will of course need to be indented, but if one tries to manually move the cursor down to add an except line, Cursor will rapidly cycle through various indentation arrangements, many of which break code correctness. The end result is that you’re often unsure whether the new code is functionally equivalent to the old.

1 Like

Yes I wish we could disable AI suggestions for indentation on the Tab feature. Its a waste of tab usage and just gets in the way. The IDE will handle my formatting, i don’t need AI to do it, particularly if its the ONLY thing it is doing.

1 Like