SASS Identation 2 spaces?

0

Hello,

Recently I'm using Sass without any front-end automation due to company guidelines and I usually work with the .sass format, however I'm having problems with the id's of the same, always complaining that instead of a tab, there are two spaces ... how do I fix this?

* I've seen a gringo post teaching how to fix it, but I did not find the file it edited on my computer. ** Use Windows

  

link

    
asked by anonymous 25.10.2016 / 23:02

1 answer

1

EditorConfig is a plugin for your editor that allows you to prepare your editor to obey the configuration of your project, respecting spacing, tab, new lines and everything else you set in the configuration file. You can use it with Sublime Text, Visual Code and etc.

After installing the EditorConfig plugin, add the file .editorconfig with the following configuration:

root = true

# General
[*]
end_of_line = lf
insert_final_newline = true

# Indentation of Stylesheets
[*.{sass, scss, css}]
charset = utf-8
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
    
26.10.2016 / 01:26