# Any way to disable auto-indentation in Cursor?

**URL:** <https://forum.cursor.com/t/any-way-to-disable-auto-indentation-in-cursor/15353>\
**Category:** Help\
**Created:** [September 6, 2024, 10:44pm UTC](https://forum.cursor.com/t/any-way-to-disable-auto-indentation-in-cursor/15353 "2024-09-06T22:44:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinny](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/vinny/32/4202_2.png) [@Vinny](https://forum.cursor.com/u/Vinny)\
**Post date:** [September 6, 2024, 10:44pm UTC](https://forum.cursor.com/t/any-way-to-disable-auto-indentation-in-cursor/15353/1 "2024-09-06T22:44:07Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![obs-zuozhiwang](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/obs-zuozhiwang/32/5994_2.png) [@obs-zuozhiwang](https://forum.cursor.com/u/obs-zuozhiwang)\
**Post date:** [September 23, 2024, 9:59pm UTC](https://forum.cursor.com/t/any-way-to-disable-auto-indentation-in-cursor/15353/2 "2024-09-23T21:59:54Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dd7](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dd7/32/3413_2.png) [@dd7](https://forum.cursor.com/u/dd7)\
**Post date:** [November 25, 2024, 5:55pm UTC](https://forum.cursor.com/t/any-way-to-disable-auto-indentation-in-cursor/15353/3 "2024-11-25T17:55:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![erc777](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/erc777/32/14098_2.png) [@erc777](https://forum.cursor.com/u/erc777)\
**Post date:** [December 1, 2024, 7:05pm UTC](https://forum.cursor.com/t/any-way-to-disable-auto-indentation-in-cursor/15353/4 "2024-12-01T19:05:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![DiegoFischerDev](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/diegofischerdev/32/64475_2.png) [@DiegoFischerDev](https://forum.cursor.com/u/DiegoFischerDev)\
**Post date:** [June 18, 2025, 8:38am UTC](https://forum.cursor.com/t/any-way-to-disable-auto-indentation-in-cursor/15353/5 "2025-06-18T08:38:18Z")

</div>

1. Checking your Cursor version (Help → About)

2. Confirming if you’ve tried setting

```auto
"editor.formatOnSave": false

```

in your settings.json file

You can access your settings.json through the Command Palette (Cmd/Ctrl + Shift + P) by searching for “Preferences: Open Settings (JSON)”.

---

<div class="post-metadata">

**Author:** ![Mariano\_Lopez](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Mariano\_Lopez](https://forum.cursor.com/u/Mariano_Lopez)\
**Post date:** [September 22, 2025, 6:08pm UTC](https://forum.cursor.com/t/any-way-to-disable-auto-indentation-in-cursor/15353/6 "2025-09-22T18:08:34Z")

</div>

Did you manage to disable the auto format??  
I did this  
`"editor.formatOnSave": false`  
but still getting auto formatted, I can’t save my files!
