Fix #511: Automatic code formatting grabs closing curly brackets when adding properties