Skip to main content
Active reading [<https://en.wikipedia.org/wiki/TypeScript>].
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

When using typescriptTypeScript, the default tab width is always 2two regardless of what it says in the toolbar. You have to set "prettier.tabWidth" in your user settings to change it.

Ctrl+PCtrl + P, Type >userType → user settings, add:

"prettier.tabWidth": 4 

When using typescript, the default tab width is always 2 regardless of what it says in the toolbar. You have to set "prettier.tabWidth" in your user settings to change it.

Ctrl+P, Type >user settings, add:

"prettier.tabWidth": 4 

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.

Ctrl + P, Type → user settings, add:

"prettier.tabWidth": 4 
Source Link
Steve Hanov
  • 11.6k
  • 16
  • 67
  • 72

When using typescript, the default tab width is always 2 regardless of what it says in the toolbar. You have to set "prettier.tabWidth" in your user settings to change it.

Ctrl+P, Type >user settings, add:

"prettier.tabWidth": 4