Reputation: 71
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
Reputation: 2019
Press Ctr
Shift
P
. Then select Preferences: Open Settings (JSON)
(It should be the first result).
Find the javascript key and add to "editor.tabSize": 2
it.
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.tabSize": 2
},
Upvotes: 1