Indentation guides become misaligned after changing Windows display scaling while Cursor is closed.
I encounter this issue more frequently when using an external monitor with my laptop, especially when the laptop’s built-in display and the external monitor use different scaling settings.
However, the indentation guides return to their correct positions if I zoom Cursor using Ctrl++ or Ctrl± while Cursor is open, or if you change the Windows display scaling while Cursor is running.
It looks like the editor picks up the wrong font measurement at startup after a scaling change, which is why zooming puts the guides back. I’ve passed this to the team.
In the meantime, besides Ctrl+/-, running Developer: Reload Window from the Command Palette (Ctrl+Shift+P) should put the guides back after a few seconds without changing your zoom.
Could you share the value of editor.fontFamily in your settings? That would help confirm what’s going on.
I’ve read your response and conducted further testing, which helped me confirm some additional scenarios where the bug occurs.
English font only: When using an English font such as JetBrains Mono, the indentation guide issue does not occur, regardless of whether I change the Windows display scaling or Cursor’s zoom level.
Chinese font only: When using a Chinese font such as 'Microsoft YaHei', the indentation guides exhibit the incorrect width associated with the bug, but the indentation alignment remains correct.
Mixed English and Chinese fonts: When using JetBrains Mono, 'Microsoft YaHei', the indentation guides have the incorrect width, and the indentation alignment is also incorrect.
All screenshots below were taken using the same procedure: close Cursor, change the Windows display scaling, and then relaunch Cursor.