OS Version: Windows 10 x64 1903
WMF Version: 5.1
Impact: Minor
Symptoms:
When you open a curly brace with the option to automatically close it enabled and then hit enter, it correctly moves the cursor down one line and the closing brace to the line after.
If however instead you hit the "END" key, and then hit enter, it will add a new line under you (and add some odd indentation levels in some cases).
Reproducibility:
Type the following line with the option, to auto-close curly braces enabled:
Code: Select all
if ($true) { Write-Host "Hello World" }
Then hit "ENTER"