In the recent updates to version 17, a new feature was edited to the do-file editor so that you could place the cursor on a line and then have that line executed, and then the cursor would move to the next line, skipping over comments and blank lines. This would lead to a very simple way to step through code one line at a time.
The problem is that a command can extend over several lines. I have found (Windows 10, version 17 MP4) that when I extend a command over multiple lines using ///, only the first line of the command is executed (if it is not, without the subsequent lines, an invalid command), and the cursor then moves to the next line of the same command. That next line, of course, is not by itself a valid command.
So this feature does not seem to work with commands that break over several lines. It would be a terrific enhancement if this behavior were modified so that it really executes one command at a time, rather than one literal line.
The problem is that a command can extend over several lines. I have found (Windows 10, version 17 MP4) that when I extend a command over multiple lines using ///, only the first line of the command is executed (if it is not, without the subsequent lines, an invalid command), and the cursor then moves to the next line of the same command. That next line, of course, is not by itself a valid command.
So this feature does not seem to work with commands that break over several lines. It would be a terrific enhancement if this behavior were modified so that it really executes one command at a time, rather than one literal line.
Comment