Thanks Steve for reply.
The suggestion was for "brand new code lines generated in real(live) time" not for code already in existence - so feature not applicable to editing (copy/cut/paste , replacing, included files, etc.).
Except the IDE doesn’t know the difference between a new line and an edited line. It just checks your whole program, from first character to last character, with every keystroke and change you make in the IDE.
Personally, I’d like to see a hotkey added for quick insertion based on the error message.
ERROR — FOR WITHOUT NEXT
Say we see the above error... A hotkey combo of CTRL-I would paste a NEXT statement wherever our cursor current sits, as a quick insert method.
This hotkey only saves a few characters typing with NEXT, LOOP, WEND, END SUB, END FUNCTION, and such, but it could be a quick and easy means to define variables when OPTION _EXPLICIT is in use.
ERROR — MyVar NOT DEFINED
Just hit Ctrl-I and presto! DIM MyVar AS SINGLE appears. (Or whatever the default variable type is. QB64 tracks those types internally, so it can define them automatically for you.)
(Of course, a different hotkey might be necessary, if ctrl-i is already in use, but I personally like the idea of having control over placement of code, rather than having the IDE automatically put it where it thinks it might belong.)