V
V
Vladislav Khvostov2016-06-10 09:17:50
JavaScript
Vladislav Khvostov, 2016-06-10 09:17:50

What to choose as indents in js, spaces or tabs?

Now there is a discussion about what to choose as indents. Advise which is better?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
Тимур Шемсединов, 2016-06-10
@vlakhvo

Откройте исходники ноды и посмотрите, там 2 пробела.

Артем Сошников, 2016-06-10
@artem90

I will say from my personal experience: I have not yet seen recommendations to use tabs instead of spaces.
And personally, I advise using spaces.

R
Rou1997, 2016-06-10
@Rou1997

2 spaces, then the code will be comfortably edited both in notepad or any file manager in the "admin panel", and in any editor and IDE, and somewhere the tabs turn out to be too long, and the "admin panel" (<textarea>) can enter a tab generally impossible.

N
Nikolay Talanov, 2016-06-10
@Ronnie_Gardocki

2 spaces that are tabbed. Customizable in any editor, including notepad++.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question