V
V
Vladimir2019-01-03 23:57:09
Sass
Vladimir, 2019-01-03 23:57:09

How to concatenate tab size and spaces when nesting SASS in sublime text3?

I study the basics of SASS
there is a common nesting for example

.header
 h2
  font-size: 20px
 p 
  font-size: 16px

Basically the question is in the title. is it possible to somehow combine tab and space into one?
I have sublime in sass extension tab size 1
But I alternate them with spaces = when you do this instead of tabs the compiler complains. = that this is not a tab. and you need to press convert every time.
Or the only way out is to get used to using one space or tab.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
RAX7, 2019-01-04
@faradeifrontend

Basically the question is in the title. is it possible to somehow combine tab and space into one?

You can bring all the indents to the same style: spaces or tabs.
To do this, click on "Tab Size: n" in the lower right corner and select "Convert Indentation to Spaces|Tabs"

I
Ice, 2019-01-04
@IceRD

Use tabs to build a nesting tree (the size of a tab can be changed at any time), space only parameters (after the colon)
Alternating such entries is bad form, the compiler will not understand what is required of it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question