I found the solution by copying all the default options from the settings.json file and comparing with the ones I already have set. The value to change was:
"editor.autoIndent": "keep",
and it should be:
"editor.autoIndent": "full",
CLICK HERE to find out more related problems solutions.