Basic and Qbasic indentation issues

Problem description:
The editor for the Basic and QBasic languages always add an indentation level after IFTHEN blocks. For example:

IF room=2 THEN PRINT "room 2"

After pressing Enter, the next line will be indented. This indentation level will follow you throughout the program even if you manually remove the indentation.


IF room=2 THEN PRINT "room 2"
PRINT "What next?"

After pressing Enter, the editor will apply an indentation. It does not appear that the Replit editor allows you to turn off auto-indentation.

Adding the END keyword to the line results in the editor no longer applying the indentation, which is great, except that it’s not valid BASIC syntax.

Expected behavior:

The editor should not indent lines that follow IFTHEN lines.

Actual behavior:
The editor does indent lines after IFTHEN statements

Steps to reproduce:
Start a BASIC or QBasic program. Type:


Then press Enter.

Bug appears at this link:

Browser: Safari
Device (Android, iOS, NA leave blank): iMac
Desktop app version (Avatar menu->“Version”) or NA: NA
Plan (Free, Hacker, Pro Plan): Free


Thank you very much for updating us. I have let the team know of this issue. Thank you!