FIX THE CODE FOLDING PLEASE IT's OUTRAGEOUS

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Code doesn’t fold properly with multiline strings, very difficult to navigate

Steps to Reproduce

Code doesn’t fold properly with multiline strings, very difficult to navigate

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.7.46 (user setup)
VSCode Version: 1.99.3
Commit: b9e5948c1ad20443a5cecba6b84a3c9b99d62580
Date: 2025-10-14T01:21:46.830Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.19045

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

1 Like

Hey, thanks for the report. This is a known limitation with Python code folding in Cursor. The issue affects multiline strings, docstrings, and other constructs. Folding currently works only based on indentation, not language semantics.

This is an upstream limitation in basedpyright (which Cursor’s Python extension is based on). The team is aware and will incorporate improvements when they become available upstream.

You can help by upvoting this GitHub issue: support `textDocument/foldingRange` · Issue #308 · DetachHead/basedpyright · GitHub

As a temporary workaround, you can use indentation-based folding or manually add region markers if needed.

1 Like

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