When using ESLint in Microsoft Visual Studio Code, ESLint is deciding that my tab is four spaces. When I click 'quick fix' and 'fix this indent problem' it fixes it fine, but why is my tab key not inserting a tab ESLint recognizes? I have read this and turned off editor.insertSpaces
but that does not seem to have fixed it. Any idea how to get ESLint to register my tabs? I would prefer not to disable the rule entirely, but I will if I have to.
Edit: it would seem that this problem only occurs in my index.js file.
CodePudding user response:
In settings.json
file, you should add this line:
"editor.tabSize": 2