Search code examples
visual-studio-codeindentation

Can I set VS Code to use tabs for indentation and spaces for leading alignment?


Is there a way to get VS Code to use tabs for indentation and spaces for alignment)? As an example:

function foo(){
\t--array.map(a => a[0])
\t--     .filter(a => a);
}

In this case, \t-- indicates a tab, and spaces indicate spaces. As is, my spaces get converted to tabs all the time and it's very frustrating.


Solution

  • At the time of this writing, no. It's been raised as a feature request before:

    I don't understand why #134618 is closed. I've pinged a maintainer to ask why.