tab should do 2 spaces not 4 vsc code example
Example 1: vscode tab size
"editor.insertSpaces": true,
"editor.tabSize": 2,
Example 2: vscode change tab to 2 spaces
Go to File > Preference > Settings > Detect Indentation and uncheck + Tab Size to 2