Indentation issues on line break or word break

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Hi, I just installed Cursor, and I really like the AI Copilot; however, there is a bug in this software.

Bug: When I have a block, eg, an if-else block, a for loop block. I start typing content inside it, but with one level of indentation. Because the content inside the scopes is indented. When there is no space on the line, it continues from new, but the indentation starts from the beginning of the line instead of where the previous line started.

Yes, indentation misalignment issues…

Steps to Reproduce

  • Start typing from 1 tab indentation until it line breaks and jumps to a new line. The new line will start from the beginning of the line without any indentation.

Expected Behavior

After word break, when it continues from a new line it suppose to start from where previous line starts.

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.7.52 (Universal)
VSCode Version: 1.99.3
Commit: 9675251a06b1314d50ff34b0cbe5109b78f848c0
Date: 2025-10-17T01:41:03.967Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 23.4.0

Does this stop you from using Cursor

Yes - Cursor is unusable

It really makes my code look like spaghetti. And here is how it works in VSCode, and how it is supposed to work normally.

Hey, thanks for the report. This isn’t a bug, the behavior is controlled by the VS Code setting editor.wrappingIndent.

How to fix:

  1. Open Settings: Cmd+, (or File → Preferences → Settings)
  2. Search for wrappingIndent
  3. Change it from none to same (or indent for one extra level)

Alternatively, add this to your settings.json:
"editor.wrappingIndent": "same"

This should match VS Code’s behavior. Let me know if this helps!

oh, i thought that’s a bug cuz I tried different settings and didn’t recognise the difference, but I see now it works, probably my bad, it’s time to switch to Cursor :fire: Thanks for the quick response!

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.