V
V
VicTHOR2019-09-10 11:23:15
Visual Studio Code
VicTHOR, 2019-09-10 11:23:15

How to customize tabs for each file?

It is necessary that the default for all js files is 2 spaces, and for php files 4 spaces. While not wanting to create an .editorconfig in every project, can this be configured in the editor? Maybe some default formatter?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VicTHOR, 2019-11-05
@VicTHOR

settings.json

"[css]": {
    "editor.tabSize": 2
},
"[styl]": {
    "editor.tabSize": 2
},
"[js]": {
    "editor.tabSize": 2
},
"[php]": {
    "editor.tabSize": 4
},

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question