Bug on my mouse cursor pointing & making selection etc to a line

Hey, thanks for the report and the screenshot. In the image, the mouse I-beam is on the right, but the actual caret lands after ) in the middle of the line. That’s a horizontal offset. This looks like a known issue with font character width measurement in the editor font metrics. No data is lost, and it’s usually quick to fix.

Try these in order:

  • Ctrl+Shift+P → Developer: Reload Window (or fully restart Cursor).
  • If it comes back, temporarily change the editor font to a different one and then change it back. This forces a re-measure and usually clears the bug.

This most often shows up when moving the window between monitors with different scaling DPI settings. To help narrow it down, can you share:

  • What editor.fontFamily are you using, and are ligatures enabled editor.fontLigatures?
  • How many monitors do you have, do they use different scaling, and are you dragging the window between screens?
  • What scaling percent is set in Windows?

Related threads for context: Intermittent bug with text cursor position, https://forum.cursor.com/t/134758. Let me know if Reload Window or switching the font helped.