I asked Cursor IDE to generate a simple calculator in an empty file. The code was generated correctly, without any extra spaces between the lines.
However, if I ask it to improve the code or make any updates, extra spaces get added between lines. The second screenshot shows this issue, where spaces appear between the lines.
I’ve tried resetting the settings and reinstalling, but the problem persists. If I ignore it, the spaces keep duplicating. My code initially had 240 lines, but it later expanded to 5000 lines because of this duplication. Could you please advise on what to do?