When using TypeScript, the default tab width is always two regardless of what it says in the toolbar. You have to set "prettier.tabWidth" in your user settings to change it. <kbd>Ctrl</kbd> + <kbd>P</kbd>, *Type* → user settings, add: "prettier.tabWidth": 4