Reputation: 9511
Does anyone know if it's possible to have VS Code auto format different file extensions differently?
For example I want:
JS - 4 spaces, CSS - 2 spaces and HTML - 2 spaces
Upvotes: 0
Views: 316
Reputation: 3879
You can use Language Specific Settings. In your settings.json
do like so:
{
"[javascript]": {
"editor.tabSize": 4
},
"[css]": {
"editor.tabSize": 2
},
"[html]": {
"editor.tabSize": 2
}
}
Upvotes: 2