This formatter re-indents SCSS by tracking brace depth: every time it sees an opening brace it increases the indent for what follows, and every closing brace pulls the indent back out, with each declaration ending up on its own line. It's a lightweight, dependency-free beautifier rather than a real Sass parser, so it doesn't understand things like interpolation edge cases, comments with braces inside them, or validate that your SCSS actually compiles, it simply reflows whitespace around the punctuation you already wrote. That makes it fast and safe to run on a quick paste when you just want consistent indentation without pulling in a build toolchain.
No. It only reformats whitespace and line breaks around braces and semicolons, it does not parse selectors, check that mixins exist, or verify the file would actually compile with Sass. Run it through a real Sass compiler for correctness checks.
Yes, nesting and the & parent selector are just text to this tool, so they pass through untouched while the surrounding braces get indented to reflect how deeply they're nested.
Because this is a simple brace-based indenter rather than a full parser, comments and unusual multi-line values can sometimes shift in ways a real Sass-aware formatter would avoid, always review the output before committing it, especially on complex files.