Thuan Nguyen
Thuan Nguyen

Reputation: 71

How to set "Indent using tabs" as the default when creating new files?

How do I set Indent using tabs as the default setting for newly created files?

I always have to configure it manually by clicking the tab Spaces: 2 and then choosing the option Indent using spaces whenever I create a new file on my workspace.

Upvotes: 6

Views: 3047

Answers (1)

Adam A Allalou
Adam A Allalou

Reputation: 2019

  1. Press Ctr Shift P. Then select Preferences: Open Settings (JSON) (It should be the first result).

  2. Find the javascript key and add to "editor.tabSize": 2 it.

    "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.tabSize": 2
    

    },

Upvotes: 1

Related Questions