Indentation SASS 2 spaces?

Asked

Viewed 98 times

0

Hello,

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

*I have seen a gringo post teaching to fix, but I did not find in my computer the file that he edited. **Use of Windows

https://stackoverflow.com/questions/13689264/change-indentation-in-sass

1 answer

1

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

After installing the plugin Editorconfig, 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
  • where do I put the . editorconfig file? I installed the plugin in Sublime via package control.

  • You can add to the root folder of your project.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.