For Next not displayed correctly on 2021 r2

If I was still in the testers group I’d probably not have found this either as I always run my reformat code script which puts put all my code in a working state. I can probably guess at why this wasn’t noticed, but if you want something to help you in the short term, take a look at my reformat code script here, just go through the settings before you use it so it doesn’t make any unwanted changes to your code. All you need to do then is move the cursor up/down the code or cut and paste code chunks and it’ll fix things automatically.

However, if you have lots of errors distributed around a large project, it might just be easier for the time being to rollback to a previous version of the ide.

1 Like