A
A
Askar Mukhametshin2019-11-08 10:57:07
Linter
Askar Mukhametshin, 2019-11-08 10:57:07

How to display 2 spaces in indentation like 3 in VSCode?

When setting up eslint, we ran into the following problem:
Our team has a division according to who puts how many spaces as indentation - 2, 3 and 4. The simplest thing is to set the indentation rule in the linter through tab, and each one in the editor through tabsize sets the desired size. But there is a significant disadvantage of this approach, when we view the sources through vi or online viewers, they are not so good friends with tabs. Can vscode be set up so that we can set eslint indentation to 2 spaces and the editor to display 3 or 4?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question